straight-arm-50771
02/16/2023, 8:34 PMpulumi refresh
when it tries to download plugins. This is in GitHub actions, ubuntu:22 runners which come w/Pulumi CLI loaded. Even the retry logic isn't enough most of the time. Took 4 re-runs (each w/5 retries!) to get past it this morning.
GitHub Actions run step:
- name: Refresh Kubernetes
shell: bash
run: |
cd kubernetes/
pulumi stack select our-org/${GOOGLE_PROJECT}
n=1
max=5
while true; do
pulumi refresh -y --non-interactive && break || {
if [ "$n" -lt 5 ]; then
echo "Failed attempt $n/$max"
n=$((n+1))
sleep 30
else
echo "[ERROR] Retries exhausted"; exit 1
fi
}
done
Error:
error: could not load plugin for kubernetes provider 'urn:pulumi:my-stack::kubernetes::gcp:container/cluster:Cluster$pulumi:providers:kubernetes::provider': Could not automatically download and install resource plugin 'pulumi-resource-kubernetes', install the plugin using `pulumi plugin install resource kubernetes`.
Underlying error: 403 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest>
Some days it works first try, most of the time it gives us issues.cuddly-smartphone-15267
02/17/2023, 2:11 AMawait aws.ec2.getSubnetIdsOutput({vpcId: predefined.vpcId});
and it returns an object with an ids
property of type: Output<string[]>
in the case of pulumi managed (awsx) VPC, the vpc object has a privateSubnetIds
property with a type of Output<string>[]
...
any idea how to convert them both into the same type? ie, either convert Output<string[]>
into Output<string>[]
or visa versacreamy-monkey-35142
02/17/2023, 3:45 AMpulumi>=3.0.0,<4.0.0
pulumi_cloudflare>=4.14.0
pulumi-vault
pulumiverse_sentry
hmm, I’m working on Python project and look like there is no naming conversation for packages =.=!late-lizard-19909
02/17/2023, 3:41 PMable-artist-91005
02/17/2023, 5:22 PMconst oidcProvider = new pulumi.StackReference(`org/project/${awsAccount}`);
const oidcProviderArn = oidcProvider.getOutput('arn');
console.log(oidcProviderArn)
curved-kitchen-24115
02/17/2023, 6:20 PMtailscale:index:Acl (development-tailnetAcl):
error: 1 error occurred:
* Failed to set ACL: ! You seem to be trying to overwrite a non-default ACL with a tailscale_acl resource.
Before doing this, please import your existing ACL into Terraform state using:
terraform import $(this_resource) acl
(got error "precondition failed, invalid old hash (412)")
I’m not really sure which room to ask for help in. Does anyone have an idea why this may be happening? Or how I can rectify it?adorable-window-23951
02/17/2023, 6:42 PMwide-apple-61576
02/17/2023, 8:03 PMambitious-continent-10899
02/17/2023, 8:51 PMcurved-kitchen-24115
02/17/2023, 10:27 PMrich-bear-99789
02/18/2023, 6:26 PMrich-bear-99789
02/18/2023, 9:19 PMglamorous-father-12267
02/19/2023, 5:28 AMwet-fall-57893
02/20/2023, 5:08 AMerror: unable to check if bucket <s3://tom-pulumi-state> is accessible: blob (code=Unknown): AccessDenied: Access Denied
while running this command
pulumi config get foo:bar --config-file Pulumi.dave-test.yaml
I don’t expect pulumi to look at files on remote backend thoughglamorous-father-12267
02/20/2023, 11:06 AMbright-flag-46266
02/20/2023, 12:05 PMaz aks update --enable-blob-driver -n myAKSCluster -g myResourceGroup
which doesn't help much wrt. pulumi and I cannot find anything in the pulumi docs on how to do this for the azure.native package.rhythmic-dentist-32021
02/20/2023, 12:39 PMmillions-addition-49065
02/20/2023, 2:54 PMfresh-spring-82225
02/20/2023, 6:48 PM.apply()
. For example, I create a vpc
const vpc = new awsx.ec2.Vpc(...)
then I want to add a route to a transit gateway to each route table
const onPremIps = ...
const transitGatewayIps = ...
const routeTables = aws.ec2.getRouteTablesOutput({ vpcId: vpc.vpcId })
routeTables.apply((rts) =>
rts.ids.forEach((id) => {
new aws.ec2.Route(`${id}-onprem-route`, {
routeTableId: id,
destinationCidrBlock: onPremIps,
transitGatewayId,
})
})
)
Is there some other way I’m supposed to be doing this kind of thing?salmon-account-74572
02/20/2023, 8:51 PMmany-morning-3811
02/21/2023, 2:25 AMDiagnostics:
pulumi:pulumi:Stack (create-aro-cluster-dev):
error: update failed
error: an unhandled error occurred: program failed:
waiting for RPCs: rpc error: code = Unknown desc = invocation of azure-native:redhatopenshift:listOpenShiftClusterAdminCredentials returned an error: error reading from server: read tcp 127.0.0.1:54443->127.0.0.1:54440: use of closed network connection
azure-native:redhatopenshift:OpenShiftCluster (aro-demo):
error: 1 error occurred:
* Code="InternalServerError" Message="Internal server error."
Looking at the docs API version shows 2020-04-30 that seems like a date? If there is another channel for aro specific issues let me know. Can definitely use your help. Working with a customer who is in the middle of infra as code journey so it would be great to have this working end to end. I've tried grantingmagnificent-midnight-24334
02/21/2023, 5:05 AMexport const Group = new okta.group.Group(
config.appName,
{
name: config.appName,
description: config.appName,
},
{ ignoreChanges: ["users"] }
)
export const AdminGroup = new okta.group.Group(
config.adminGroupName,
{
name: config.adminGroupName,
description: config.adminGroupName,
},
{ ignoreChanges: ["users"] }
)
const app = new okta.app.OAuth(
config.appName,
{
grantTypes: ["authorization_code", "refresh_token", "implicit"],
label: config.appName,
redirectUris: config.redirectUris,
postLogoutRedirectUris: config.postLogoutRedirectUris,
refreshTokenRotation: "ROTATE",
responseTypes: ["code", "token", "id_token"],
tokenEndpointAuthMethod: "none",
type: "browser",
pkceRequired: true
},
{
ignoreChanges: ["users", "groups"],
customTimeouts: {
create: "5m",
delete: "60m",
update: "60m",
},
}
)
worried-helmet-23171
02/21/2023, 6:07 AMbitter-kilobyte-77804
02/21/2023, 7:04 AMstrong-match-67698
02/21/2023, 10:32 AMwooden-room-54680
02/21/2023, 12:30 PMincalculable-potato-82285
02/21/2023, 3:25 PMDiagnostics:
kubernetes:core/v1:ConfigMap (log4j):
error: failed to initialize discovery client: The gcp auth plugin has been removed.
Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
See <https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke> for further details
We already tried, adding:
env:
USE_GKE_GCLOUD_AUTH_PLUGIN: true
with
run: gcloud container clusters get-credentials <CLUSTER_NAME>
and:
name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v0'
with:
install_components: 'gke-gcloud-auth-plugin'
We also tried using different version of "setup-gcloud". Does anybody has an idea what we could try next?strong-match-67698
02/21/2023, 4:47 PMicy-laptop-27867
02/21/2023, 4:52 PMv4.0.0
of pulumi/actions https://github.com/pulumi/actions/releases/tag/v4.0.0prehistoric-sandwich-7272
02/21/2023, 5:44 PM// GcpPermissionsArgs The set of arguments for creating a GcpPermissions component resource.
type GcpPermissionsArgs struct {
Project string `pulumi:"project"`
GcpServiceAccountName string `pulumi:"gcpServiceAccountName"`
GcpPermissions []string `pulumi:"gcpPermissions"`
}
GcpPermissions
is an array of strings ([]string).
The packages is generating the Typescript code, making the args as follows:
/**
* The set of arguments for constructing a GcpPermissions resource.
*/
export interface GcpPermissionsArgs {
/**
* Array of GCP permissions.
*/
gcpPermissions: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* Wanted name for the new service account.
*/
gcpServiceAccountName: pulumi.Input<string>;
/**
* Pulumi project's name.
*/
project: pulumi.Input<string>;
}
Making the gcpPermissions
argument be an array of key value variables.
Actual result should have been something like:
gcpPermissions: pulumi.Input<string>[];
What am I doing wrong? how can I solve this?