CloudFormation_Templates/dest_account.yaml [315:383]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Version: "2012-10-17"
      PolicyName: InstanceSSMDefaultPolicy6E4EFE93
      Roles:
        - Ref: InstanceSSMCBFA3CF0
    Metadata:
      aws:cdk:path: ACM-Blog/InstanceSSM/DefaultPolicy/Resource
  InstanceInstanceSecurityGroupF0E2D5BE:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: ACM-Blog/Instance/InstanceSecurityGroup
      SecurityGroupEgress:
        - CidrIp: 0.0.0.0/0
          Description: Allow all outbound traffic by default
          IpProtocol: "-1"
      Tags:
        - Key: Name
          Value: ApacheServer
      VpcId:
        Ref: VPCB9E5F0B4
    Metadata:
      aws:cdk:path: ACM-Blog/Instance/InstanceSecurityGroup/Resource
  InstanceInstanceProfileAB5AEF02:
    Type: AWS::IAM::InstanceProfile
    Properties:
      Roles:
        - Ref: InstanceSSMCBFA3CF0
    Metadata:
      aws:cdk:path: ACM-Blog/Instance/InstanceProfile
  InstanceC1063A87:
    Type: AWS::EC2::Instance
    Properties:
      AvailabilityZone:
        Fn::Select:
          - 0
          - Fn::GetAZs: ""
      IamInstanceProfile:
        Ref: InstanceInstanceProfileAB5AEF02
      ImageId:
        Ref: SsmParameterValueawsserviceamiamazonlinuxlatestamzn2amihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter
      InstanceType: t2.micro
      SecurityGroupIds:
        - Fn::GetAtt:
            - InstanceInstanceSecurityGroupF0E2D5BE
            - GroupId
      SubnetId:
        Ref: VPCPrivateSubnet1Subnet8BCA10E0
      Tags:
        - Key: Name
          Value: ApacheServer
      UserData:
        Fn::Base64: >-
          #!/bin/bash

          sudo yum update -y

          sudo yum install -y jq

          sudo yum install -y httpd

          sudo yum install -y mod_ssl

          sudo systemctl start httpd

          sudo systemctl enable httpd
    DependsOn:
      - InstanceSSMDefaultPolicy6E4EFE93
      - InstanceSSMCBFA3CF0
    Metadata:
      aws:cdk:path: ACM-Blog/Instance/Resource
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



CloudFormation_Templates/src_account.yaml [318:386]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Version: "2012-10-17"
      PolicyName: InstanceSSMDefaultPolicy6E4EFE93
      Roles:
        - Ref: InstanceSSMCBFA3CF0
    Metadata:
      aws:cdk:path: ACM-Blog/InstanceSSM/DefaultPolicy/Resource
  InstanceInstanceSecurityGroupF0E2D5BE:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: ACM-Blog/Instance/InstanceSecurityGroup
      SecurityGroupEgress:
        - CidrIp: 0.0.0.0/0
          Description: Allow all outbound traffic by default
          IpProtocol: "-1"
      Tags:
        - Key: Name
          Value: ApacheServer
      VpcId:
        Ref: VPCB9E5F0B4
    Metadata:
      aws:cdk:path: ACM-Blog/Instance/InstanceSecurityGroup/Resource
  InstanceInstanceProfileAB5AEF02:
    Type: AWS::IAM::InstanceProfile
    Properties:
      Roles:
        - Ref: InstanceSSMCBFA3CF0
    Metadata:
      aws:cdk:path: ACM-Blog/Instance/InstanceProfile
  InstanceC1063A87:
    Type: AWS::EC2::Instance
    Properties:
      AvailabilityZone:
        Fn::Select:
          - 0
          - Fn::GetAZs: ""
      IamInstanceProfile:
        Ref: InstanceInstanceProfileAB5AEF02
      ImageId:
        Ref: SsmParameterValueawsserviceamiamazonlinuxlatestamzn2amihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter
      InstanceType: t2.micro
      SecurityGroupIds:
        - Fn::GetAtt:
            - InstanceInstanceSecurityGroupF0E2D5BE
            - GroupId
      SubnetId:
        Ref: VPCPrivateSubnet1Subnet8BCA10E0
      Tags:
        - Key: Name
          Value: ApacheServer
      UserData:
        Fn::Base64: >-
          #!/bin/bash

          sudo yum update -y

          sudo yum install -y jq

          sudo yum install -y httpd

          sudo yum install -y mod_ssl

          sudo systemctl start httpd

          sudo systemctl enable httpd
    DependsOn:
      - InstanceSSMDefaultPolicy6E4EFE93
      - InstanceSSMCBFA3CF0
    Metadata:
      aws:cdk:path: ACM-Blog/Instance/Resource
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



