Skip to content

Instantly share code, notes, and snippets.

@flannon
Created December 11, 2016 14:08
Show Gist options
  • Save flannon/555b9fc41bd5c47eb4a77b8d59585bcc to your computer and use it in GitHub Desktop.
Save flannon/555b9fc41bd5c47eb4a77b8d59585bcc to your computer and use it in GitHub Desktop.
Cloudformation AWS::EC2::Instance calling cross stack exported GroupId
myInstance:
Type: AWS::EC2::Instance
Properties:
ImageId:
Fn::FindInMap:
- RegionMap
- Ref: AWS::Region
- AMI
InstanceType: t1.micro
KeyName:
Ref: KeyPair
SecurityGroupIds: [ !ImportValue TESTY22-SecurityGroupID ]
Tags:
- Key: Name
Value: myInstanceName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment