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

Use role names instead of ARN when creating instance profiles #2791

Merged
merged 1 commit into from
Nov 5, 2020

Conversation

aclevername
Copy link
Contributor

@aclevername aclevername commented Nov 5, 2020

Description

When creating an instance profile you need to provide the name instead of the role for the ARN. Currently if your provide an instanceRoleARN value but not a instanceProfileARN we attempt to create an InstanceProfile, but we provide the value ARN value instead of the role name to the spec, causing an error. Related AWS doc: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html

Related issue: fixes #2768

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Added labels for change area (e.g. area/nodegroup), target version (e.g. version/0.12.0) and kind (e.g. kind/improvement)
  • Make sure the title of the PR is a good description that can go into the release notes

@aclevername aclevername self-assigned this Nov 5, 2020
@aclevername aclevername marked this pull request as ready for review November 5, 2020 14:54
Copy link
Contributor

@michaelbeaumont michaelbeaumont left a comment

Choose a reason for hiding this comment

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

This fixes #2768 right?

@aclevername
Copy link
Contributor Author

This fixes #2768 right?

@michaelbeaumont yes

@aclevername aclevername merged commit 39840d0 into master Nov 5, 2020
@aclevername aclevername deleted the create-instance-profile branch November 5, 2020 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NodeInstanceProfile CREATE_FAILED: "The specified value for roleName is invalid"
2 participants