Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIPAA Security - Implement ec2-instances-in-vpc config rule #239

Closed
dontirun opened this issue Aug 10, 2021 · 0 comments · Fixed by #317
Closed

HIPAA Security - Implement ec2-instances-in-vpc config rule #239

dontirun opened this issue Aug 10, 2021 · 0 comments · Fixed by #317
Assignees

Comments

@dontirun
Copy link
Collaborator

Summary

As a developer

I would like to implement the ec2-instances-in-vpc config rule

So that I can check if qualified resources in my CDK app conforms to the following HIPAA Security control(s): 164.308(a)(3)(i), 164.308(a)(4)(ii)(A), 164.308(a)(4)(ii)(C), 164.312(a)(1), 164.312(e)(1)

Details

ruleId: HIPAA.Security-EC2InstancesInVPC

info: The EC2 instance is not within a VPC - (Control IDs: 164.308(a)(3)(i), 164.308(a)(4)(ii)(A), 164.308(a)(4)(ii)(C), 164.312(a)(1), 164.312(e)(1))

Given Reason: Deploy Amazon Elastic Compute Cloud (Amazon EC2) instances within an Amazon Virtual Private Cloud (Amazon VPC) to enable secure communication between an instance and other services within the amazon VPC, without requiring an internet gateway, NAT device, or VPN connection. All traffic remains securely within the AWS Cloud. Because of their logical isolation, domains that reside within anAmazon VPC have an extra layer of security when compared to domains that use public endpoints. Assign Amazon EC2 instances to an Amazon VPC to properly manage access.

Acceptance Criteria

If the rule can be implemented

Given a CDK app with a non-compliant resource

  • When HIPAA Security Pack is enabled
  • Then the CDK stack does not deploy and the user receives an ERROR with relevant Control ID information about the non compliant resource

Given a CDK app with a compliant resource

  • When HIPAA Security Pack is enabled
  • Then the CDK stack deploys and the user does not receive an ERROR about the compliant resource

Given the cdk-nag RULES file

  • When the HIPAA.Security-EC2InstancesInVPC rule is added to the rule pack
  • Then the HIPAA Security Errors section is updated with the rule information

If the rule cannot be implemented

Given the cdk-nag RULES file

  • When the ec2-instances-in-vpc check is not added to the rule pack
  • Then the HIPAA Security Excluded Rules section is updated with the check information
@dontirun dontirun added this to the HIPAA Security milestone Aug 10, 2021
@maafk maafk self-assigned this Aug 21, 2021
@mergify mergify bot closed this as completed in #317 Aug 23, 2021
mergify bot pushed a commit that referenced this issue Aug 23, 2021
closes #189 
closes #191 
closes #239 
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants