aws:aws-cloudformation_refs
Differences
This shows you the differences between two versions of the page.
| aws:aws-cloudformation_refs [15/02/2024 10:13] – created - external edit 127.0.0.1 | aws:aws-cloudformation_refs [30/05/2025 09:43] (current) – removed andrew | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Create a ec2 instance and security group tied together with '' | ||
| - | |||
| - | <code yaml> | ||
| - | Resources: | ||
| - | Ec2Instance: | ||
| - | Type: AWS:: | ||
| - | Properties: | ||
| - | InstanceType: | ||
| - | ImageId: ami-07d9160fa81ccffb5 # Amazon Linux AMI in Ireland | ||
| - | Tags: | ||
| - | - Key: Name | ||
| - | Value: AJS - simple EC2 example | ||
| - | - Key: email | ||
| - | Value: myname@company.co.uk | ||
| - | - Key: BuiltBy | ||
| - | Value: CloudFormation | ||
| - | - Key: JoinTest | ||
| - | Value: !Join [ ":", | ||
| - | SecurityGroups: | ||
| - | - !Ref SecurityGroupSSH | ||
| - | |||
| - | SecurityGroupSSH: | ||
| - | Type: AWS:: | ||
| - | Properties: | ||
| - | GroupDescription: | ||
| - | SecurityGroupIngress: | ||
| - | - IpProtocol: tcp | ||
| - | FromPort: ' | ||
| - | ToPort: ' | ||
| - | CidrIp: 0.0.0.0/0 | ||
| - | Tags: | ||
| - | - Key: Name | ||
| - | Value: AJS - Allow SSH | ||
| - | |||
| - | S3BucketExample: | ||
| - | Type: AWS:: | ||
| - | Properties: | ||
| - | AccessControl: | ||
| - | BucketName: ajs-bucket | ||
| - | WebsiteConfiguration: | ||
| - | IndexDocument: | ||
| - | Tags: | ||
| - | - Key: Name | ||
| - | Value: AJSTestBucket | ||
| - | - Key: builtby | ||
| - | Value: CloudFormation | ||
| - | </ | ||
| - | |||
| - | |||
aws/aws-cloudformation_refs.1707991990.txt.gz · Last modified: by 127.0.0.1
