Difference between revisions of "AWS::EC2"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 2: | Line 2: | ||
* <code>[[AWS::ElasticLoadBalancingV2]]</code> | * <code>[[AWS::ElasticLoadBalancingV2]]</code> | ||
+ | |||
+ | == Example == | ||
+ | MyEC2Instance: | ||
+ | Type: AWS::EC2::Instance | ||
+ | Properties: | ||
+ | ImageId: "ami-79fd7eee" | ||
+ | KeyName: "testkey" | ||
+ | BlockDeviceMappings: | ||
+ | - DeviceName: "/dev/sdm" | ||
+ | Ebs: | ||
+ | VolumeType: "io1" | ||
+ | Iops: "200" | ||
+ | DeleteOnTermination: "false" | ||
+ | VolumeSize: "20" | ||
+ | - DeviceName: "/dev/sdk" | ||
+ | NoDevice: {} | ||
==See also== | ==See also== |
Revision as of 09:21, 27 August 2021
- AWS::EC2::Instance: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html
Example
MyEC2Instance: Type: AWS::EC2::Instance Properties: ImageId: "ami-79fd7eee" KeyName: "testkey" BlockDeviceMappings: - DeviceName: "/dev/sdm" Ebs: VolumeType: "io1" Iops: "200" DeleteOnTermination: "false" VolumeSize: "20" - DeviceName: "/dev/sdk" NoDevice: {}
See also
- AWS CloudFormation,
AWS::CloudFormation
AWS CloudFormation Designer, Drift detection, AWS Cloud Development Kit (CDK),aws cloudformation
,ServicesStack:
, AWS CloudFormation Linter (cfn-lint
), Former2, CloudCraft, Change sets, AWS CloudFormation Public Registry, CloudFormation snippets, CloudFormation templates, StackSets,Outputs:
,Type:
,Fn::Sub
,!Ref
, CloudFormation Parameters, AWS CloudFormation Templates, CloudFormation functions
Advertising: