Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow creating EBS volumes/snaphots from s3 files #53453

Closed
jstodola opened this issue Mar 7, 2019 · 4 comments
Closed

Allow creating EBS volumes/snaphots from s3 files #53453

jstodola opened this issue Mar 7, 2019 · 4 comments
Labels
affects_2.8 This issue/PR affects Ansible v2.8 aws cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@jstodola
Copy link

jstodola commented Mar 7, 2019

SUMMARY

I'm trying to register a locally created *.ami image file as an AMI in ec2. The image file can be uploaded to my s3 bucket, but I couldn't find a way to import the file as an EBS volume or snapshot into ec2 using the ec2_vol or ec2_snapshot modules.
Have I missed any module or option, or is this not yet possible to do using ansible?

It is possible to do this task using aws cli (see script [1]), but not using ansible.
[1] https://github.com/weldr/lorax/blob/master/tests/cli/test_build_and_deploy_aws.sh#L98

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

Modules ec2_vol and/or ec2_snapshot

ADDITIONAL INFORMATION
@ansibot
Copy link
Contributor

ansibot commented Mar 7, 2019

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Mar 7, 2019

@ansibot
Copy link
Contributor

ansibot commented Mar 7, 2019

@jstodola, just so you are aware we have a dedicated Working Group for aws.
You can find other people interested in this in #ansible-aws on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 aws cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Mar 7, 2019
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Mar 26, 2019
jstodola added a commit to jstodola/lorax that referenced this issue May 16, 2019
Not all parts of the script has been switched from awscli to ansible yet,
because the ansible aws modules do not support importing s3 object as snapshots.
(ansible/ansible#53453)
Workaround using the image_location parameter of the ec2_ami ansible module
would mean adding extra code for generating AMI manifest with pre-signed
URLs.
jstodola added a commit to jstodola/lorax that referenced this issue May 21, 2019
Not all parts of the script has been switched from awscli to ansible yet,
because the ansible aws modules do not support importing s3 object as snapshots.
(ansible/ansible#53453)
Workaround using the image_location parameter of the ec2_ami ansible module
would mean adding extra code for generating AMI manifest with pre-signed
URLs.
atodorov pushed a commit to weldr/lorax that referenced this issue May 24, 2019
Not all parts of the script has been switched from awscli to ansible yet,
because the ansible aws modules do not support importing s3 object as snapshots.
(ansible/ansible#53453)
Workaround using the image_location parameter of the ec2_ami ansible module
would mean adding extra code for generating AMI manifest with pre-signed
URLs.
@jillr
Copy link
Contributor

jillr commented Jul 15, 2019

The ec2_ami module should do what you need, with image_location as your S3 source.

@jillr jillr closed this as completed Jul 15, 2019
@ansible ansible locked and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 aws cloud feature This issue/PR relates to a feature request. module This issue/PR relates to a module. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

4 participants