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

Fix Missing parameter in PCI policy (InternetGatewayAuthorizedVpcOnlyParamAuthorizedVpcIds) #356

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ Parameters:
Description: Maximum number of days a credential cannot be used. The default value
is 90 days.
Type: String
InternetGatewayAuthorizedVpcOnlyParamAuthorizedVpcIds:
Default: ' '
Type: String
RestrictedIncomingTrafficParamBlockedPort1:
Default: '20'
Description: Blocked TCP port number.
Expand Down Expand Up @@ -738,13 +741,14 @@ Resources:
SourceIdentifier: INCOMING_SSH_DISABLED
Type: AWS::Config::ConfigRule
InternetGatewayAuthorizedVpcOnly:
Controls:
- '1.3'
Properties:
ConfigRuleName: internet-gateway-authorized-vpc-only
Description: Checks that Internet gateways (IGWs) are only attached to an authorized
Amazon Virtual Private Cloud (VPCs). The rule is NON_COMPLIANT if IGWs are
not attached to an authorized VPC.
InputParameters:
AuthorizedVpcIds:
Fn::If:
- internetGatewayAuthorizedVpcOnlyParamAuthorizedVpcIds
- Ref: InternetGatewayAuthorizedVpcOnlyParamAuthorizedVpcIds
- Ref: AWS::NoValue
Scope:
ComplianceResourceTypes:
- AWS::EC2::InternetGateway
Expand Down Expand Up @@ -1301,6 +1305,11 @@ Conditions:
- Fn::Equals:
- ''
- Ref: IamUserUnusedCredentialsCheckParamMaxCredentialUsageAge
internetGatewayAuthorizedVpcOnlyParamAuthorizedVpcIds:
Fn::Not:
- Fn::Equals:
- ''
- Ref: InternetGatewayAuthorizedVpcOnlyParamAuthorizedVpcIds
restrictedIncomingTrafficParamBlockedPort1:
Fn::Not:
- Fn::Equals:
Expand Down