Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

platform/api/aws: copy createVolumePermission when replicating #1112

Merged
merged 1 commit into from Oct 24, 2019

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Oct 24, 2019

We should just match whatever permissions are set on the source
snapshot.

Closes: #1111

We should just match whatever permissions are set on the source
snapshot.

Closes: coreos#1111
@jlebon
Copy link
Member Author

jlebon commented Oct 24, 2019

Ahh, so at least with FCOS, this'll require broadening permissions:

Couldn't copy images: couldn't describe createVolumePermission: UnauthorizedOperation: You are not authorized to perform this operation.
        status code: 403, request id: ee9bdd3f-f10f-4155-85cd-d8a090a1cedb

Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks exactly the same as what I have in git diff locally.

@jlebon
Copy link
Member Author

jlebon commented Oct 24, 2019

Still testing for RHCOS. Will file an issue to get permissions extended for FCOS.

@jlebon
Copy link
Member Author

jlebon commented Oct 24, 2019

OK, this is working fine!

$ aws ec2 describe-snapshot-attribute --snapshot-id snap-0fb... --attribute createVolumePermission --region us-west-1
snap-0fb...
CREATEVOLUMEPERMISSIONS all

I couldn't test FCOS, but I filed https://pagure.io/fedora-infrastructure/issue/8325.

@jlebon jlebon marked this pull request as ready for review October 24, 2019 19:12
@jlebon jlebon merged commit 58fafef into coreos:master Oct 24, 2019
jlebon added a commit to jlebon/fedora-coreos-pipeline that referenced this pull request Oct 24, 2019
We need this for the new mantle code that replicates AMIs:
coreos/mantle#1112
jlebon added a commit to coreos/fedora-coreos-pipeline that referenced this pull request Oct 24, 2019
We need this for the new mantle code that replicates AMIs:
coreos/mantle#1112
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix ore aws copy-image to copy snapshot permissions too
2 participants