|
625 | 625 | "IgnoreUnmodifiedGroupSizeProperties": true
|
626 | 626 | }
|
627 | 627 | }
|
| 628 | + }, |
| 629 | + "AsgWithGp3BlockdeviceInstanceSecurityGroup54D76206": { |
| 630 | + "Type": "AWS::EC2::SecurityGroup", |
| 631 | + "Properties": { |
| 632 | + "GroupDescription": "aws-cdk-asg-integ/AsgWithGp3Blockdevice/InstanceSecurityGroup", |
| 633 | + "SecurityGroupEgress": [ |
| 634 | + { |
| 635 | + "CidrIp": "0.0.0.0/0", |
| 636 | + "Description": "Allow all outbound traffic by default", |
| 637 | + "IpProtocol": "-1" |
| 638 | + } |
| 639 | + ], |
| 640 | + "Tags": [ |
| 641 | + { |
| 642 | + "Key": "Name", |
| 643 | + "Value": "aws-cdk-asg-integ/AsgWithGp3Blockdevice" |
| 644 | + } |
| 645 | + ], |
| 646 | + "VpcId": { |
| 647 | + "Ref": "VPCB9E5F0B4" |
| 648 | + } |
| 649 | + } |
| 650 | + }, |
| 651 | + "AsgWithGp3BlockdeviceInstanceRoleF52FB39B": { |
| 652 | + "Type": "AWS::IAM::Role", |
| 653 | + "Properties": { |
| 654 | + "AssumeRolePolicyDocument": { |
| 655 | + "Statement": [ |
| 656 | + { |
| 657 | + "Action": "sts:AssumeRole", |
| 658 | + "Effect": "Allow", |
| 659 | + "Principal": { |
| 660 | + "Service": { |
| 661 | + "Fn::Join": [ |
| 662 | + "", |
| 663 | + [ |
| 664 | + "ec2.", |
| 665 | + { |
| 666 | + "Ref": "AWS::URLSuffix" |
| 667 | + } |
| 668 | + ] |
| 669 | + ] |
| 670 | + } |
| 671 | + } |
| 672 | + } |
| 673 | + ], |
| 674 | + "Version": "2012-10-17" |
| 675 | + }, |
| 676 | + "Tags": [ |
| 677 | + { |
| 678 | + "Key": "Name", |
| 679 | + "Value": "aws-cdk-asg-integ/AsgWithGp3Blockdevice" |
| 680 | + } |
| 681 | + ] |
| 682 | + } |
| 683 | + }, |
| 684 | + "AsgWithGp3BlockdeviceInstanceProfile2FC414A5": { |
| 685 | + "Type": "AWS::IAM::InstanceProfile", |
| 686 | + "Properties": { |
| 687 | + "Roles": [ |
| 688 | + { |
| 689 | + "Ref": "AsgWithGp3BlockdeviceInstanceRoleF52FB39B" |
| 690 | + } |
| 691 | + ] |
| 692 | + } |
| 693 | + }, |
| 694 | + "AsgWithGp3BlockdeviceLaunchConfig24411F5E": { |
| 695 | + "Type": "AWS::AutoScaling::LaunchConfiguration", |
| 696 | + "Properties": { |
| 697 | + "ImageId": { |
| 698 | + "Ref": "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter" |
| 699 | + }, |
| 700 | + "InstanceType": "t3.micro", |
| 701 | + "BlockDeviceMappings": [ |
| 702 | + { |
| 703 | + "DeviceName": "ebs", |
| 704 | + "Ebs": { |
| 705 | + "DeleteOnTermination": true, |
| 706 | + "Encrypted": true, |
| 707 | + "Throughput": 125, |
| 708 | + "VolumeSize": 15, |
| 709 | + "VolumeType": "gp3" |
| 710 | + } |
| 711 | + } |
| 712 | + ], |
| 713 | + "IamInstanceProfile": { |
| 714 | + "Ref": "AsgWithGp3BlockdeviceInstanceProfile2FC414A5" |
| 715 | + }, |
| 716 | + "SecurityGroups": [ |
| 717 | + { |
| 718 | + "Fn::GetAtt": [ |
| 719 | + "AsgWithGp3BlockdeviceInstanceSecurityGroup54D76206", |
| 720 | + "GroupId" |
| 721 | + ] |
| 722 | + } |
| 723 | + ], |
| 724 | + "UserData": { |
| 725 | + "Fn::Base64": "#!/bin/bash" |
| 726 | + } |
| 727 | + }, |
| 728 | + "DependsOn": [ |
| 729 | + "AsgWithGp3BlockdeviceInstanceRoleF52FB39B" |
| 730 | + ] |
| 731 | + }, |
| 732 | + "AsgWithGp3BlockdeviceASGE82AA487": { |
| 733 | + "Type": "AWS::AutoScaling::AutoScalingGroup", |
| 734 | + "Properties": { |
| 735 | + "MaxSize": "10", |
| 736 | + "MinSize": "0", |
| 737 | + "DesiredCapacity": "5", |
| 738 | + "LaunchConfigurationName": { |
| 739 | + "Ref": "AsgWithGp3BlockdeviceLaunchConfig24411F5E" |
| 740 | + }, |
| 741 | + "Tags": [ |
| 742 | + { |
| 743 | + "Key": "Name", |
| 744 | + "PropagateAtLaunch": true, |
| 745 | + "Value": "aws-cdk-asg-integ/AsgWithGp3Blockdevice" |
| 746 | + } |
| 747 | + ], |
| 748 | + "VPCZoneIdentifier": [ |
| 749 | + { |
| 750 | + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" |
| 751 | + }, |
| 752 | + { |
| 753 | + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" |
| 754 | + } |
| 755 | + ] |
| 756 | + }, |
| 757 | + "UpdatePolicy": { |
| 758 | + "AutoScalingScheduledAction": { |
| 759 | + "IgnoreUnmodifiedGroupSizeProperties": true |
| 760 | + } |
| 761 | + } |
628 | 762 | }
|
629 | 763 | },
|
630 | 764 | "Parameters": {
|
|
636 | 770 | "Type": "AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>",
|
637 | 771 | "Default": "/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-arm64-gp2"
|
638 | 772 | },
|
| 773 | + "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter": { |
| 774 | + "Type": "AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>", |
| 775 | + "Default": "/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-gp2" |
| 776 | + }, |
639 | 777 | "BootstrapVersion": {
|
640 | 778 | "Type": "AWS::SSM::Parameter::Value<String>",
|
641 | 779 | "Default": "/cdk-bootstrap/hnb659fds/version",
|
|
0 commit comments