After assuming an IAM role, add the ability to switch to another role.

Comments

baldwinlouie created an issue. See original summary.

baldwinlouie’s picture

Status: Active » Needs review
StatusFileSize
new23.35 KB

Attaching patch.

Status: Needs review » Needs work

The last submitted patch, 2: 3056198.patch, failed testing. View results

baldwinlouie’s picture

Status: Needs work » Needs review
StatusFileSize
new28.35 KB

Updating the patch to support assume/switch role when "Use instance credentials" is enabled.

baldwinlouie’s picture

StatusFileSize
new29.25 KB

Updating patch to fix updating snapshots. Also updated the "Account ID" terminology for field_switch_role field.

yas’s picture

StatusFileSize
new29.25 KB

@baldwinlouie

Thank you for the update patch. It looks good to me but I changed the patch for hook_update_N since we merged the patch 3056523-5.patch.

@xiaohua-guan
@masami

What do you think?

yas’s picture

xiaohua guan’s picture

@yas

I think the uuid should be remove from the yml file, such as field.field.cloud_config.aws_ec2.field_switch_role.yml, because the uuid is identifier in a specific environment.

+uuid: 13c4e695-e092-4f3d-b990-522300b767fc
yas’s picture

StatusFileSize
new29 KB
new3.46 KB

@xioahua-guan

Nice catch, thank you for your review. I updated the patch. Please confirm.

xiaohua guan’s picture

@yas

Thanks for your patch. It's ok to me now.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@xiaohua-guan

Thank you for your review. The tests are passed successfully, so I'll merge the patch to 8.x-1.x and 8.x-2.x and close this issue as Fixed.

  • yas committed d685a16 on 8.x-1.x
    Issue #3056198 by baldwinlouie, yas, Xiaohua Guan: Add ability to switch...

  • yas committed ad137e4 on 8.x-2.x
    Issue #3056198 by baldwinlouie, yas, Xiaohua Guan: Add ability to switch...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.