adorable-waitress-13708
03/11/2022, 9:47 AMthousands-hairdresser-72380
03/11/2022, 2:09 PMpulumi login
) is getting this error:
could not decrypt configuration value: [400] Message authentication failed
When they run pulumi config --show-secrets
?
Update: I am also getting the same error on my end and I’m an admin for our team.
Steps to reproduce:
1. pulumi stack select ORG/prod
2. pulumi config --show-secrets
rough-oyster-77458
03/11/2022, 2:40 PMpulumi.export()
to export a variable in file1.py
. I'm going to use this variable in file2.py
Is there any way to get this variable in file2.py
?
So far I have found how to import this variable in CLI onlyminiature-piano-36287
03/11/2022, 3:09 PMimport * as aws from '@pulumi/aws'
import * as pulumi from '@pulumi/pulumi'
const failuresBackupBucketName = pulumi.output(
aws.ssm.getParameter({ name: "/s3/bucket/failuresBackup" })
)
export const failuresBackupBucket = aws.s3.getBucket({
bucket: failuresBackupBucketName.value
})
miniature-piano-36287
03/11/2022, 3:09 PMminiature-piano-36287
03/11/2022, 3:10 PMthousands-hairdresser-72380
03/11/2022, 4:05 PMconst loadBalancerSecurityGroup = new aws.ec2.SecurityGroup(name + '-load-balancer-sg', {
tags,
vpcId: vpc.id,
egress: [
{
protocol: 'tcp',
fromPort: port,
toPort: port,
cidrBlocks: ['0.0.0.0/0']
}
],
ingress: [
{
protocol: 'tcp',
fromPort: 80,
toPort: 80,
cidrBlocks: ['0.0.0.0/0']
},
{
protocol: 'tcp',
fromPort: 443,
toPort: 443,
cidrBlocks: ['0.0.0.0/0']
}
]
})
The errors:
* [WARN] A duplicate Security Group rule was found on (sg-XYZ). This may be
a side effect of a now-fixed Terraform issue causing two security groups with
identical attributes but different source_security_group_ids to overwrite each
other in the state. See <https://github.com/hashicorp/terraform/pull/2376> for more
information and instructions for recovery. Error: InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 80, to port: 80, ALLOW" already exists
status code: 400, request id: d1bceeb0-9183-4877-9018-539e1bd6835d
error: 1 error occurred:
* [WARN] A duplicate Security Group rule was found on (sg-XYZ). This may be
a side effect of a now-fixed Terraform issue causing two security groups with
identical attributes but different source_security_group_ids to overwrite each
other in the state. See <https://github.com/hashicorp/terraform/pull/2376> for more
information and instructions for recovery. Error: InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 443, to port: 443, ALLOW" already exists
status code: 400, request id: e69a1967-7418-42d7-8c71-39061f4db122
Any ideas? I’ve reviewed the issue that was linked but it seems unrelated as I’m not specifying any security groups in the rules.fast-easter-23401
03/11/2022, 5:23 PM<
becomes \003c
when I run pulumi stack output --show-secrets
. My value comes originally from my stack config. Is there a way to prevent this from happening, maybe a CLI flag or arg if you want to proceed programmatically?
Many thanks,freezing-umbrella-80278
03/11/2022, 5:56 PMkubectl apply
with pulumi
.
I'm trying to install GitLab Agent on a Kubernetes cluster and the "recommended method of installation" is the following.
docker run --pull=always --rm \
<http://registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:stable|registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/cli:stable> generate \
--agent-token=REDACTED \
--kas-address=<wss://kas.gitlab.com> \
--agent-version stable \
--namespace gitlab-kubernetes-agent | kubectl apply -f -
I was thinking I can probably run the Docker container via pulumi
and get the output of the logs as a string.
But then how can I apply that YAML with kubectl
?
I guess I could you the command package?
https://www.pulumi.com/registry/packages/command/
But not very nice as it relies on my host's installation of kubectl
and that it has access to the right cluster.prehistoric-shoe-5168
03/11/2022, 6:35 PMfast-spoon-69536
03/11/2022, 9:50 PMesa.create_app_role(example.endpoint.apply(lambda endpoint: f"{endpoint}"),admin_username,admin_password,app_role_payload,role_name)
fast-arm-63150
03/12/2022, 12:38 AMgifted-room-26715
03/12/2022, 8:38 AMfuture-window-78560
03/12/2022, 1:33 PMbitter-eve-53295
03/13/2022, 5:19 PMlate-chef-72896
03/14/2022, 8:23 AMadorable-gpu-98268
03/14/2022, 11:01 AMrich-tiger-43483
03/14/2022, 3:44 PMerror: could not load plugin for checkly provider 'urn:pulumi:dev::pulumi-sample::pulumi:providers:checkly::default_0_0_1_alpha_1': no resource plugin 'checkly-v0.0.1-alpha.1' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource checkly v0.0.1-alpha.1`
What is weird is that I am using the version checkly-v0.0.1-alpha.3
but for some reason it tries to find checkly-v0.0.1-alpha.1
. Any ideas what could be wrong?bored-ability-11314
03/14/2022, 7:25 PMbored-ability-11314
03/14/2022, 7:26 PMapply(v => v.toJSON())
bored-ability-11314
03/14/2022, 7:27 PMbusy-lion-51883
03/14/2022, 8:05 PMworried-lifeguard-96134
03/14/2022, 8:23 PMpulumi.Run(func(ctx *pulumi.Context) error {
or there is option to use the SDK directly/other optionworried-lifeguard-96134
03/14/2022, 8:23 PMacceptable-byte-95884
03/15/2022, 12:06 AMpreview
the command on pull-request? Or even suppress everything except the result and errors?
Here is my workflow on Github pull_request.yml
.
name: Pulumi
on:
- pull_request
jobs:
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ secrets.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- run: npm install
- uses: pulumi/actions@v3
with:
command: preview
work-dir: applications
stack-name: production
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
Size comparison of output, an example of the output in the thread. And comparison of github/action and cli in image.
Thank you very much for any helpable-dentist-35553
03/15/2022, 12:10 AMable-dentist-35553
03/15/2022, 12:14 AMable-dentist-35553
03/15/2022, 12:14 AMable-dentist-35553
03/15/2022, 12:14 AMable-dentist-35553
03/15/2022, 12:15 AM