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

Fix IMDSv2 test to allow /tmp to be immutable #4673

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions provider/test-programs/imds-auth/imds-v2/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ resources:
bucket: ${upload-bucket.id}
key: pulumi-resource-aws
source:
fn::FileAsset: ${localProviderBuild}
fn::fileAsset: ${localProviderBuild}
Copy link
Member Author

Choose a reason for hiding this comment

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

Removes a warning; the older form is obsolete.


my-instance-profile:
type: aws:iam/instanceProfile:InstanceProfile
Expand Down Expand Up @@ -167,14 +167,19 @@ resources:
type: command:remote:Command
properties:
create: |
cd /tmp
# Install pulumi and pulumi-resource-aws into PATH
export PATH="/home/ec2-user/.pulumi/bin:$PATH"
cp /tmp/pulumi-resource-aws /home/ec2-user/.pulumi/bin/
chmod a+x /home/ec2-user/.pulumi/bin/pulumi-resource-aws
echo "pulumi version:"
pulumi version
echo "pulumi-resource-aws version:"
pulumi-resource-aws -version
mkdir /home/ec2-user/repro
cp /tmp/Pulumi.yaml /home/ec2-user/repro/Pulumi.yaml
cd /home/ec2-user/repro
mkdir ./pulumi-state
export PULUMI_CONFIG_PASSPHRASE=123456
export PATH="/tmp:$PATH"
export PATH="/home/ec2-user/.pulumi/bin:$PATH"
chmod a+x /tmp/pulumi-resource-aws
pulumi version # ensure in PATH
pulumi-resource-aws --help # ensure in PATH
pulumi stack init dev
pulumi stack select dev
pulumi config
Expand Down
Loading