freezing-daybreak-42018
06/03/2022, 3:05 PMfreezing-daybreak-42018
06/03/2022, 3:05 PMvictorious-airplane-20017
06/03/2022, 6:55 PMclever-address-74879
06/06/2022, 12:26 PMclever-address-74879
06/06/2022, 12:26 PMpulumi config set ...
for each secret if I have a few of those.clever-address-74879
06/06/2022, 12:27 PMmicroscopic-cpu-38113
06/06/2022, 12:33 PMmicroscopic-cpu-38113
06/06/2022, 1:29 PM--policy-pack <path-to-policy-pack-directory>
has to be supplied in the pulumi up command? In this case, seems like anyone can just alter the policies in the directory and then get their changes applied? Secondly, it seems that the Github Actions for Pulumi doesn't support policy-pack option yet, which means the policy won't be able to be enforced if the workflow is executed via Github Actions?important-coat-64788
06/07/2022, 8:04 AMpulumi preview
it doesn't want to change the tags back to the state of my code. Is this possible to configure somehow?clever-address-74879
06/07/2022, 8:11 PMResources:
1 unchanged
clever-address-74879
06/07/2022, 8:12 PMpulumi refresh
and then pulumi up
and even pulumi down
and pulumi up
but it's just not picking up the changes.clever-address-74879
06/07/2022, 8:13 PMclever-address-74879
06/07/2022, 9:18 PMmysql:admin-password
in my Pulumi.test.yml
and then I do _config = new Pulumi.Config();
. But when I try to fetch it with _config.RequireSecret("mysql:admin-password")
it throws Pulumi.Config+ConfigMissingException: Missing Required configuration variable 'bigday:mysql:admin-password'
clever-address-74879
06/07/2022, 9:19 PMclever-address-74879
06/07/2022, 9:20 PMpulumi config
shows
KEY VALUE
mysql:admin-password [secret]
clever-address-74879
06/07/2022, 9:20 PMRequireSecret
it's prefixing the project name ?clever-address-74879
06/07/2022, 9:21 PMclever-address-74879
06/07/2022, 9:22 PMPulumi.Config()
and Pulumi.Config(_stackName)
but neither workssilly-scientist-20604
06/08/2022, 8:36 AMpulumi.getStack()
, but I cannot figure out how to invoke it in python:
import pulumi
pulumi_stack_name = pulumi.getStack()
print( "pulumi_stack_name: ", pulumi_stack_name )
results in:
AttributeError: module 'pulumi' has no attribute 'getStack'
clever-address-74879
06/10/2022, 5:07 PMbroad-parrot-2692
06/10/2022, 6:42 PM-C pulumi
every time.miniature-piano-36287
06/10/2022, 8:07 PMnpm install
• I’m using multiple profiles in /Users/myUser/.aws/credentials
file so i export the variable AWS_PROFILE
with the desire profile
And when i run pulumi up -y --debug
I have the following output
View Live: <https://app.pulumi.com/username-Company/my-project/staging/previews/a28a6c6f-a248-422b-b6c3-69952ba24b25>
Type Name Plan Info
pulumi:pulumi:Stack my-project-staging 1 error; 84 debugs
Diagnostics:
pulumi:pulumi:Stack (my-project-staging):
debug: AWS Auth provider used: "SharedCredentialsProvider"
debug: Retrieved credentials from "SharedConfigCredentials: /Users/myUser/.aws/credentials"
debug: Trying to get account information via iam:GetUser
debug: [aws-sdk-go-v2] Request
debug: POST / HTTP/1.1
debug: Host: <http://iam.amazonaws.com|iam.amazonaws.com>
debug: User-Agent: APN/1.0 Pulumi/1.0 Pulumi/1.0 Pulumi-Aws/0.11+compatible (+<https://www.pulumi.com>) aws-sdk-go-v2/1.16.4 os/macos lang/go/1.17.10 md/GOOS/darwin md/GOARCH/amd64 api/iam/1.18.4
debug: Content-Length: 33
debug: Amz-Sdk-Invocation-Id: 9d4bcd52-bf3a-4820-bc86-63bdb833c373
debug: Amz-Sdk-Request: attempt=1; max=25
debug: Authorization: AWS4-HMAC-SHA256 Credential=ASIAZLSIADTQEYX46VWB/20220610/us-east-1/iam/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=ba167d321ee0a3f44bb00c3292f7c49f48b67acb08da69994c6eb89e60104d22
debug: Content-Type: application/x-www-form-urlencoded
debug: X-Amz-Date: 20220610T195843Z
debug: X-Amz-Security-Token: IQoJb3JpZ2luX2VjECoaCXVzLWVhc3QtMSJHMEUCIQDrhA0H+03SzLPtkZreE1YEdxOasofnKb4Taxi6zNKvPQIgR7tE8L+FewnZehskc+xMDrrDlGBUw03TNvStA8CoKlQqlgMIMhADGgw2NDMzMjIzNTQ5MTIiDA4IdCOfKDKYBQzMJirzAo4P8127BeRLMpNu15PDd/XOltgXqWiIJ/uAiZq9Agj9BdaMluXpHEHB11yTQ+nI2FihtOzl8qzul9y0exjgteGebmyMQVEkTOK+sZNicAWGK8wsNVChqJtbP0Xl6r3z6KTVSOjbpP+d50J/I8ZXm4KYT1ywyaPyS0Lr1EeQ/3lkNfA2zi+dKmcEODvcsKHNL1QG9SYf2XGClHeCRRcZicv8v3S0oX5+MsvLfoLK3jYj7qxVx5/J857HBByg8k84bM6kYqRnFBgqJb6WKOHmuCHnvzUCUNqIDQvnh+Y4hmyWqw15zfSdeiY/PKxRHS5RUDJ1MtK9TcZCak/uOMuTv/ktDyJLkDzNfnNApanCV2lwCzTMWN2WtX7EIFZgv/8xJVTmEziZjCkrNOrYquhS9y03hUKj0T7gvST8BWHnZfm/yR0n4s/A7UtPZqnN5C3I+Tiv/jrElqDcbmPfzy6wvhlFe6HoKNrVWHvjWpdcY13qjiIUMM30jZUGOqYBdSbVAiKgQgqlQvUXMPKHQPd088gkSMBYrQckhB10aPZKbc8NsWDH2jMMXCm8oh7tKxCdg1lRvgbuu7BK3ff6A81eVNPJ9jlt00iCU6ujOj1XzIOsHrJh+aj6sR6cD8pleXYPgf8Pd3bgTKoEA8/iLWlH8gRfbe9QZe4Y8Ezs+RQsySnrE/3dfuohuL9zaJK6VwTGaXoTKUlElBCA4QXf/mKvj3AMAw==
debug: Accept-Encoding: gzip
debug:
debug: Action=GetUser&Version=2010-05-08
debug: [aws-sdk-go-v2] Response
debug: HTTP/1.1 400
debug: Connection: close
debug: Content-Length: 307
debug: Content-Type: text/xml
debug: Date: Fri, 10 Jun 2022 19:58:43 GMT
debug: X-Amzn-Requestid: 300c43be-4343-4126-ae6c-f90061c7478b
debug:
debug: <ErrorResponse xmlns="<https://iam.amazonaws.com/doc/2010-05-08/>">
debug: <Error>
debug: <Type>Sender</Type>
debug: <Code>ValidationError</Code>
debug: <Message>Must specify userName when calling with non-User credentials</Message>
debug: </Error>
debug: <RequestId>300c43be-4343-4126-ae6c-f90061c7478b</RequestId>
debug: </ErrorResponse>
debug: [aws-sdk-go-v2] request failed with unretryable error https response error StatusCode: 400, RequestID: 300c43be-4343-4126-ae6c-f90061c7478b, api error ValidationError: Must specify userName when calling with non-User credentials
debug: Ignoring iam:GetUser error: operation error IAM: GetUser, https response error StatusCode: 400, RequestID: 300c43be-4343-4126-ae6c-f90061c7478b, api error ValidationError: Must specify userName when calling with non-User credentials
debug: Trying to get account information via sts:GetCallerIdentity
debug: [aws-sdk-go-v2] Request
debug: POST / HTTP/1.1
debug: Host: <http://sts.us-east-1.amazonaws.com|sts.us-east-1.amazonaws.com>
debug: User-Agent: APN/1.0 Pulumi/1.0 Pulumi/1.0 Pulumi-Aws/0.11+compatible (+<https://www.pulumi.com>) aws-sdk-go-v2/1.16.4 os/macos lang/go/1.17.10 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.16.4
debug: Content-Length: 43
debug: Amz-Sdk-Invocation-Id: 7f34d0a8-ebd0-4a4f-913b-ec9f3c770d79
debug: Amz-Sdk-Request: attempt=1; max=25
debug: Authorization: AWS4-HMAC-SHA256 Credential=ASIAZLSIADTQEYX46VWB/20220610/us-east-1/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=7bd2c6a7b162c260ea98c9f8734c039f07158797f3636aeb8a293e2acb38e693
debug: Content-Type: application/x-www-form-urlencoded
debug: X-Amz-Date: 20220610T195844Z
debug: X-Amz-Security-Token: IQoJb3JpZ2luX2VjECoaCXVzLWVhc3QtMSJHMEUCIQDrhA0H+03SzLPtkZreE1YEdxOasofnKb4Taxi6zNKvPQIgR7tE8L+FewnZehskc+xMDrrDlGBUw03TNvStA8CoKlQqlgMIMhADGgw2NDMzMjIzNTQ5MTIiDA4IdCOfKDKYBQzMJirzAo4P8127BeRLMpNu15PDd/XOltgXqWiIJ/uAiZq9Agj9BdaMluXpHEHB11yTQ+nI2FihtOzl8qzul9y0exjgteGebmyMQVEkTOK+sZNicAWGK8wsNVChqJtbP0Xl6r3z6KTVSOjbpP+d50J/I8ZXm4KYT1ywyaPyS0Lr1EeQ/3lkNfA2zi+dKmcEODvcsKHNL1QG9SYf2XGClHeCRRcZicv8v3S0oX5+MsvLfoLK3jYj7qxVx5/J857HBByg8k84bM6kYqRnFBgqJb6WKOHmuCHnvzUCUNqIDQvnh+Y4hmyWqw15zfSdeiY/PKxRHS5RUDJ1MtK9TcZCak/uOMuTv/ktDyJLkDzNfnNApanCV2lwCzTMWN2WtX7EIFZgv/8xJVTmEziZjCkrNOrYquhS9y03hUKj0T7gvST8BWHnZfm/yR0n4s/A7UtPZqnN5C3I+Tiv/jrElqDcbmPfzy6wvhlFe6HoKNrVWHvjWpdcY13qjiIUMM30jZUGOqYBdSbVAiKgQgqlQvUXMPKHQPd088gkSMBYrQckhB10aPZKbc8NsWDH2jMMXCm8oh7tKxCdg1lRvgbuu7BK3ff6A81eVNPJ9jlt00iCU6ujOj1XzIOsHrJh+aj6sR6cD8pleXYPgf8Pd3bgTKoEA8/iLWlH8gRfbe9QZe4Y8Ezs+RQsySnrE/3dfuohuL9zaJK6VwTGaXoTKUlElBCA4QXf/mKvj3AMAw==
debug: Accept-Encoding: gzip
debug:
debug: Action=GetCallerIdentity&Version=2011-06-15
debug: Registering resource: t=pulumi:pulumi:Stack, name=my-project-staging, custom=false, remote=false
debug: RegisterResource RPC prepared: t=pulumi:pulumi:Stack, name=my-project-staging
debug: RegisterResource RPC finished: resource:my-project-staging[pulumi:pulumi:Stack]; err: null, resp: urn:pulumi:staging::my-project::pulumi:pulumi:Stack::my-project-staging,,,,
debug: [aws-sdk-go-v2] Response
debug: HTTP/1.1 200 OK
debug: Content-Length: 505
debug: Content-Type: text/xml
debug: Date: Fri, 10 Jun 2022 19:58:43 GMT
debug: X-Amzn-Requestid: 85ae4a1e-1df0-4a72-abf8-e3e5fac1a9ee
debug:
debug: <GetCallerIdentityResponse xmlns="<https://sts.amazonaws.com/doc/2011-06-15/>">
debug: <GetCallerIdentityResult>
debug: <Arn>arn:aws:sts::8852224923:assumed-role/AWSReservedSSO_gti-aws-workload-admin_216facc0f87bf10d/username@Company.com</Arn>
debug: <UserId>AROAZLSIADTQGWBLS5UOF:username@Company.com</UserId>
debug: <Account>8852224923</Account>
debug: </GetCallerIdentityResult>
debug: <ResponseMetadata>
debug: <RequestId>85ae4a1e-1df0-4a72-abf8-e3e5fac1a9ee</RequestId>
debug: </ResponseMetadata>
debug: </GetCallerIdentityResponse>
debug: Running program '/Users/myUser/Documents/Company/Github/my-project' in pwd '/Users/myUser/Documents/Company/Github/my-project' w/ args:
debug: Invoking function: tok=aws:ssm/getParameter:getParameter asynchronously
debug: Invoking function: tok=aws:ssm/getParameter:getParameter asynchronously
debug: Invoking function: tok=aws:ssm/getParameter:getParameter asynchronously
debug: , obj={"name":"/elasticache/redis/dc/port"}
debug: , obj={"name":"/elasticache/redis/dc/primary"}
debug: , obj={"name":"/elasticache/redis/dc/reader"}
debug: RegisterResourceOutputs RPC prepared: urn=urn:pulumi:staging::my-project::pulumi:pulumi:Stack::my-project-staging
debug: RegisterResourceOutputs RPC finished: urn=urn:pulumi:staging::my-project::pulumi:pulumi:Stack::my-project-staging; err: null, resp:
debug: RegisterResourceOutputs RPC finished: urn=urn:pulumi:staging::my-project::pulumi:pulumi:Stack::my-project-staging; err: null, resp:
debug: Using shared credentials files from configuration: [""]
debug: Invoke RPC finished: tok=aws:ssm/getParameter:getParameter; err: Error: 2 UNKNOWN: invocation of aws:ssm/getParameter:getParameter returned an error: unable to validate AWS AccessKeyID and/or SecretAccessKey - see <https://pulumi.io/install/aws.html> for details on configuration, resp: undefined
error: Error: invocation of aws:ssm/getParameter:getParameter returned an error: unable to validate AWS AccessKeyID and/or SecretAccessKey - see <https://pulumi.io/install/aws.html> for details on configuration
at Object.callback (/Users/myUser/Documents/Company/Github/my-project/node_modules/@pulumi/runtime/invoke.ts:159:33)
at Object.onReceiveStatus (/Users/myUser/Documents/Company/Github/my-project/node_modules/@grpc/grpc-js/src/client.ts:338:26)
at Object.onReceiveStatus (/Users/myUser/Documents/Company/Github/my-project/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
at Object.onReceiveStatus (/Users/myUser/Documents/Company/Github/my-project/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
at /Users/myUser/Documents/Company/Github/my-project/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
at processTicksAndRejections (internal/process/task_queues.js:77:11)
debug: Invoke RPC finished: tok=aws:ssm/getParameter:getParameter; err: Error: 2 UNKNOWN: invocation of aws:ssm/getParameter:getParameter returned an error: unable to validate AWS AccessKeyID and/or SecretAccessKey - see <https://pulumi.io/install/aws.html> for details on configuration, resp: undefined
debug: Invoke RPC finished: tok=aws:ssm/getParameter:getParameter; err: Error: 2 UNKNOWN: invocation of aws:ssm/getParameter:getParameter returned an error: unable to validate AWS AccessKeyID and/or SecretAccessKey - see <https://pulumi.io/install/aws.html> for details on configuration, resp: undefined
Does anyone knows what could be the error?calm-kitchen-4682
06/11/2022, 11:18 AMcore.v1.Secret
Python package. I have checked the documentation here and was wondering whether the resource_name
is the acutal secret name in K8 or just some name used by Pulumi to reference this secret? Getting a non-unique error from Pulumi, despite the name being unique within a namespace in K8.breezy-laptop-42679
06/11/2022, 2:40 PMmost-mouse-38002
06/13/2022, 12:12 PMresources.LookupResourceGroup
the correct way to go about this? Seing as it returns a resources.LookupResourceGroupResult
I am a bit confused; I can of course manually turn this into a resources.ResourceGroup
but is that really “the way”?thousands-area-40147
06/13/2022, 6:19 PM--target
flag on pulumi up
for resources that have not yet been created?sparse-intern-71089
06/14/2022, 7:32 AMdamp-shampoo-64892
06/14/2022, 12:10 PMstack = auto.create_stack($$$_STUFF_$$$); stack.up()
, have attached screenshot with more detail. it mentions "python inline source runtime error: unexpected input of type TextIOWrapper" but not sure what this means, have tried tweaking a few things but error remains, now i'm rather lost. any help much appreciated, thanks!best-winter-27868
06/14/2022, 8:26 PMclever-address-74879
06/14/2022, 9:52 PMpulumi preview
command. I used to have this working without any issues, but now I get an error:
error: building auth config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'
auth method - instructions for which can be found here: <https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/#service-principal-authentication>
Alternatively you can authenticate using the Azure CLI by using a User Account.
I'm not sure if I changed something I doni't know of, or something changed in the pulumi cli?clever-address-74879
06/14/2022, 9:52 PMpulumi preview
command. I used to have this working without any issues, but now I get an error:
error: building auth config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'
auth method - instructions for which can be found here: <https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/#service-principal-authentication>
Alternatively you can authenticate using the Azure CLI by using a User Account.
I'm not sure if I changed something I doni't know of, or something changed in the pulumi cli?