Restrict public access on DMS replication instance High

DMS replication instance with public accessibility is detected. Make Sure that DMS replication instance should not allow public accessibility.

Detector ID
cloudformation/restrict-public-access-dms-cloudformation@v1.0
Category
Common Weakness Enumeration (CWE) external icon

Noncompliant example

1Resources:
2  Resource:
3    Type: AWS::DMS::ReplicationInstance
4    DependsOn:
5      - rDMSVPCRole
6      - rDMSCloudWatchLogsRole
7    Properties:
8      ReplicationInstanceIdentifier: !Sub ${pOrg}-${pApp}-${pEnvironment}-${pTeamName}-dms-cdc-replication-instance
9      ReplicationInstanceClass: dms.c4.xlarge
10      # Noncompliant: DMS replication instance is publicly accessible.
11      PubliclyAccessible: True

Compliant example

1Resources:
2  Resource:
3    Type: AWS::DMS::ReplicationInstance
4    DependsOn:
5      - rDMSVPCRole
6      - rDMSCloudWatchLogsRole
7    Properties:
8      ReplicationInstanceIdentifier: !Sub ${pOrg}-${pApp}-${pEnvironment}-${pTeamName}-dms-cdc-replication-instance
9      ReplicationInstanceClass: dms.c4.xlarge
10      # Compliant: DMS replication instance is not publicly accessible.
11      PubliclyAccessible: False