You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple stack configuration file in which I set a list of allowed AWS Account IDs.
It appears the leading zero of the AWS Account number is stripped which leads to a preview failure.
This is my Pulumi.prod.yaml which creates the issue.
config:
aws:allowedAccountIds:
- 0528XXXXYYYY
Using " around the account number seems to force the value to be interpreted as strings.
config:
aws:allowedAccountIds:
- "0528XXXXYYYY"
Sample program
n/a
Log output
Previewing update (prod)
View in Browser (Ctrl+O): https://app.pulumi.com/menfin-demo/platform-infra/prod/previews/e43597b5-e4bf-4832-9082-2ef78f340cae
Type Name Plan Info
+ pulumi:pulumi:Stack platform-infra-prod create
└─ aws:iam:OpenIdConnectProvider platform-infra-oidc-provider 1 error
Diagnostics:
aws:iam:OpenIdConnectProvider (platform-infra-oidc-provider):
error: 1 error occurred:
* AWS account ID not allowed: 0528XXXXYYYY
Affected Resource(s)
No response
Output of pulumi about
CLI
Version 3.142.0
Go Version go1.23.3
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 6.64.0
language nodejs unknown
Host
OS debian
Version 12.8
Arch x86_64
This project is written in nodejs: executable='/usr/local/bin/node' version='v22.11.0'
Current Stack: menfin-demo/platform-infra/prod
Found no resources associated with prod
Found no pending operations associated with prod
Backend
Name pulumi.com
URL https://app.pulumi.com/aureq
User aureq
Organizations aureq, team-ce, menfin-demo, menfin, menfin-team, demo
Token type personal
Dependencies:
NAME VERSION
@types/node 18.19.67
typescript 5.7.2
@pulumi/aws 6.64.0
@pulumi/pulumi 3.142.0
Pulumi locates its logs in /tmp by default
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).
The text was updated successfully, but these errors were encountered:
@aureq this is due to the underlying behavior of yaml which will interpret 0123 as the integer 123. The recommendation is to quote these values to ensure they are read as strings.
Describe what happened
Seems related to #2806
I have a simple stack configuration file in which I set a list of allowed AWS Account IDs.
It appears the leading zero of the AWS Account number is stripped which leads to a preview failure.
This is my
Pulumi.prod.yaml
which creates the issue.Using
"
around the account number seems to force the value to be interpreted as strings.Sample program
n/a
Log output
Affected Resource(s)
No response
Output of
pulumi about
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).
The text was updated successfully, but these errors were encountered: