UPD: minor updats
This commit is contained in:
parent
7169d18aab
commit
af2032a462
|
@ -13,6 +13,10 @@ Parameters:
|
|||
Description: Timezone of instance
|
||||
Type: String
|
||||
Default: UTC
|
||||
InputSubnet:
|
||||
Description: Subnet of instance
|
||||
Type: String
|
||||
Default: "Enter an unused CIDR"
|
||||
|
||||
Mappings:
|
||||
RegionMap:
|
||||
|
@ -21,25 +25,23 @@ Mappings:
|
|||
ImageId: ami-0a8d75344fec6c412
|
||||
SshKey: ACROLINX-OREGON
|
||||
SecGroups: ["sg-0c8c5cf4dca2147ee","sg-d444e4b2","sg-0b93187b","sg-859d16f5"]
|
||||
Subnet: "10.2.254.0/28"
|
||||
eu-west-1:
|
||||
VpcId: vpc-55a5a930
|
||||
ImageId: ami-0385d2ff9f9c3706d
|
||||
SshKey: ACROLINX-IRELAND
|
||||
SecGroups: ["sg-07ffa804cbff134ed","sg-5217ce2e","sg-620ad31e","sg-aa0ed7d6"]
|
||||
Subnet: "10.1.254.0/28"
|
||||
|
||||
Resources:
|
||||
InstanceSubnet:
|
||||
Type: AWS::EC2::Subnet
|
||||
Properties:
|
||||
VpcId: !FindInMap [RegionMap, !Ref "AWS::Region", VpcId]
|
||||
CidrBlock: !FindInMap [RegionMap, !Ref "AWS::Region", Subnet]
|
||||
CidrBlock: !Ref InputSubnet
|
||||
|
||||
Ec2Instance:
|
||||
Type: AWS::EC2::Instance
|
||||
Properties:
|
||||
IamInstanceProfile: AmazonSSMRoleForInstancesQuickSetup
|
||||
IamInstanceProfile: AmazonSSMRoleForInstancesQuickSetup
|
||||
KeyName: !FindInMap [RegionMap, !Ref "AWS::Region", SshKey]
|
||||
InstanceType: !Ref InputInstanceType
|
||||
ImageId: !FindInMap [RegionMap, !Ref "AWS::Region", ImageId]
|
||||
|
@ -50,6 +52,8 @@ Resources:
|
|||
Value: !Join ['', [!Ref 'InputSubdomain', ".acrolinx.cloud"]]
|
||||
- Key: "TZ"
|
||||
Value: !Ref InputTimezone
|
||||
- Key: "SSM-Enabled"
|
||||
Value: "yes"
|
||||
UserData:
|
||||
'Fn::Base64': !Sub |
|
||||
#!/bin/bash -ex
|
||||
|
|
Loading…
Reference in New Issue