Skip to content

Conversation

@anjannath
Copy link
Collaborator

No description provided.

instead of downloading and extracting the awscli from
the released zip using the container image is faster
this updates the command to check the cluster using
either of the two kubeconfig files: /opt/kubeconfig
and /opt/crc/kubeconfig

during cert rotation the /opt/crc/kubeconfig file is
created first and copied to /opt/kubeconfig, but the
service might fail before the copy happens, so  this
ensures that we check using both kubeconfigs
- podman run -it --rm --workdir /data --privileged -v ${PWD}:/data registry.access.redhat.com/ubi9/toolbox unzip awscliv2.zip
- ./aws/install
- export PS=$(aws ssm get-parameter --name "{{ .SSMPullSecretName }}" --with-decryption --query "Parameter.Value" --output text)
- export PS=$(podman run --rm docker.io/amazon/aws-cli ssm get-parameter --name "{{ .SSMPullSecretName }}" --with-decryption --query "Parameter.Value" --output text)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you test this? are the creds picked as expected from the container?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, this was tested and working

NamePrefix: pulumi.String(r.ID),
ImageId: pulumi.String(r.AMI.Id),
KeyName: r.KeyResources.AWSKeyPair.KeyName,
EbsOptimized: pulumi.String("true"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice this will be used then across all targets on aws

@adrianriobo
Copy link
Collaborator

LGTM

@adrianriobo adrianriobo merged commit ce98e9d into redhat-developer:main Aug 5, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants