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
Enable IAM roles for EC2s in AWS #10224
Enable IAM roles for EC2s in AWS #10224
Conversation
PrerequisitesProvision_install (masters)Provision_install (compute)Provision_install (infra) |
| iam_role: "{{ openshift_aws_iam_master_role_name | default(openshift_aws_iam_role_name) }}" | ||
| policy_name: "{{ openshift_aws_iam_master_role_policy_name | default(openshift_aws_iam_role_policy_name) }}" | ||
| policy_json: "{{ openshift_aws_iam_master_role_policy_json | default(openshift_aws_iam_role_policy_json) }}" | ||
| iam_role: "{{ openshift_aws_launch_config_iam_roles['master'].name | default(openshift_aws_iam_role_name) }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove default from these.
| @@ -333,6 +327,20 @@ openshift_aws_launch_config_security_groups: | |||
| - "{{ openshift_aws_clusterid }}_infra" # node type sg | |||
| - "{{ openshift_aws_clusterid }}_infra_k8s" # node type sg k8s | |||
|
|
|||
| openshift_aws_launch_config_iam_roles: | |||
| master: | |||
| name: "{{ openshift_aws_clusterid }}-iam_master" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "{{ openshift_aws_iam_master_role_name | default(openshift_aws_clusterid ~ '-iam_master') }}"
Do this for the others as well.
71422d2
to
646d0da
Compare
eacec89
to
13732b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mazzystr, michaelgugino The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/cherrypick release-3.11 |
1 similar comment
|
/cherrypick release-3.11 |
Enable IAM roles for EC2s in AWS. Iam roles are now created during prerequisites play. Build_node_group moved away iam role creation to iam role query. Ec2 and Auto Scale Group instance_profile keys updated to suit.
openshift_aws_create_iam_role: Trueopenshift_aws_master_instance_config,openshift_aws_node_group_config,openshift_aws_launch_config_iam_rolesas needed.Resolves Bugzilla 1630319 and 1632843