Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29449

How to assign a specific private ip (pre-determined ip base on my CIDR and subnet) when create ec2 using Cloudformation script

$
0
0

This the code I use, still not working. I am trying to create the instant using CloudFormation template and to be launched with specific private ip address. Please help what am I missing : where would I mention the private ip that I need it to be assigned to the instant in the CloudFormation template?

"Ec2Instance" : {"Type" : "AWS::EC2::Instance","Properties" : {"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},"KeyName" : { "Ref" : "KeyName" },"NetworkInterfaces": [ {"DeviceIndex": "0","PrivateIpAddress" : String,    } ]  }}```

Viewing all articles
Browse latest Browse all 29449

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>