pulumi / templates

Templates used by `pulumi new`
Apache License 2.0
107 stars 67 forks source link

static-website-aws-typescript stale version of synced-folder causes AWS SSO Session issues #840

Open PeterBaker0 opened 1 month ago

PeterBaker0 commented 1 month ago

What happened?

As a new user to Pulumi, following https://www.pulumi.com/templates/static-website/aws/ resulted in the following package.json

{
    "name": "my-site",
    "devDependencies": {
        "@types/node": "^18",
        "typescript": "^5.0.0"
    },
    "dependencies": {
        "@pulumi/aws": "^6.0.2",
        "@pulumi/synced-folder": "^0.0.9",
        "@pulumi/pulumi": "^3.113.0"
    }
}

This stale version of synced-folder causes issues with AWS SSO profile - throwing an error similar to this fixed issue .

Upgrading the entry to

        "@pulumi/synced-folder": "^0.11.1",

Fixed the issue.

Example

Following the guide results in the generation of the above package.json. Then run pulumi up with an AWS config such as

[profile pulumiprofile]
output = json
region = ap-southeast-2
sso_account_id = <redacted>
sso_session = pulumisession
sso_role_name = IAMPowerUserAccess
sso_region = ap-southeast-2

[sso-session pulumisession]
sso_start_url = <redacted>
sso_region = ap-southeast-2
sso_registration_scopes = sso:account:access

And exporting the profile to use the above export AWS_PROFILE=pulumiprofile.

Output of pulumi about

I've already fixed the issue as identified above - I can't easily replicate it now the resources are deployed. If you need more information please let me know.

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

thoward commented 1 month ago

Thanks for this report, we really appreciate it. Fix in place in #845 .