469,955 Members | 2,576 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,955 developers. It's quick & easy.

AWS EC2 Instance from YAML file

I am trying to understanding a coding challenge. I need to create a YAML file to automate deployment of an ec2 instance. Here is the specifications of the YAML file:

# This YAML configuration specifies a server with two volumes and two users
server:
instance_type: t2.micro
ami_type: amzn2
architecture: x86_64
root_device_type: ebs
virtualization_type: hvm
min_count: 1
max_count: 1
volumes:
- device: /dev/xvda
size_gb: 10
type: xfs
mount: /
- device: /dev/xvdf
size_gb: 20
type: ext4
mount: /data
users:
- login: user1
ssh_key: --user1 ssh public key goes here-- user1@localhost
- login: user2
ssh_key: --user2 ssh public key goes here-- user2@localhost

My Python file will read the YAML file but I am unsure of the coding structure of the automation (create user, create volumes). I can use Boto3 for AWS features. Thanks for any help provided.
4 Weeks Ago #1
0 7381

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Peter Maas | last post: by
30 posts views Thread by Reinhold Birkenfeld | last post: by
3 posts views Thread by Peter Oliphant | last post: by
4 posts views Thread by Mario | last post: by
8 posts views Thread by D | last post: by
2 posts views Thread by EuGeNe Van den Bulke | last post: by
2 posts views Thread by -b | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.