Closed carstenkoester closed 7 months ago
This issue is currently awaiting triage.
If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
/kind bug
What steps did you take and what happened:
In essence, attempted to bootstrap a workload cluster while not using
clusteraws bootstrap iam create-cloudformation-stack
, but by taking the output ofclusterawsadm bootstrap iam print-policy --document [...]
(which appear to be identical to the policies published as artifacts eg. here and creating the IAM policies, roles, and instance profiles through other automation.When spinning up a workload cluster, the workload cluster was unable to fetch cloud-init userdata because no policy in the instance role permitted a
GetSecretValue
operation.Troubleshooting this, I compared the CloudFormation stack (output of
clusterawsadm bootstrap iam print-cloudformation-template
) with the output ofclusterawsadm bootstrap iam print-policy --document AWSIAMManagedPolicyCloudProviderNodes
, and noticed that the CloudFormation stack does grant theGetSecretValue
permission (and others) while the output ofclusterawsadm bootstrap iam print-policy
(or the previously linked artifact) do not.What did you expect to happen:
I expected to be able to deploy a workload cluster using the IAM policies returned by
clusterawsadm bootstrap iam print-policy --document [...]
.Note: I'm not looking for help troubleshooting the actual userdata issue that occurred; this is already narrowed down to the missing IAM policy statement and my issue is resolved since using the CloudFormation template as a reference and updating the policy. This bug report is merely to document that there is a difference between the
AWSIAMManagedPolicyCloudProviderNodes
in the CF stack and JSON artifact, and to clarify whether this is by design, or whether the JSON artifact should be updated.Anything else you would like to add:
Policy as returned by
clusterawsadm bootstrap iam print-policy --document AWSIAMManagedPolicyCloudProviderNodes
:Policy as embedded in the CF template:
AWSIAMManagedPolicyCloudProviderControlPlane
andAWSIAMManagedPolicyControllers
look the same in both places. I did not compare or use other policies.Environment:
kubectl version
): v1.24.13/etc/os-release
):