mysterious-piano-88140
09/14/2021, 7:36 PMexport const databaseResourceGroup = new ResourceGroup(
'resource-group-dev',
{
resourceGroupName: 'resource-group-dev',
location: 'germanywestcentral',
tags: {
project: 'test',
env: 'dev',
type: 'resourcegroup'
}
}
)
My problem is that in the second project the ResourceGroup is not linked no matter how (getResourceGroup, Import, StackReference) but is always recreated, which leads to a fail because it just already exists.
// const resourceGroup = await getResourceGroup({
// resourceGroupName: databaseResourceGroupName
// })
const resourceGroup = new ResourceGroup(
'resource-group-dev',
{
resourceGroupName: 'resource-group-dev',
location: 'germanywestcentral',
tags: {
project: 'test',
env: 'dev',
type: 'resourcegroup'
}
},
{
import: `/subscriptions/<subscription-id>/resourceGroups/<resourcegroupname>`
}
)
Do any of you here have an idea how I can link between resources without recreating them.
I would now expect a similar pattern as in the AWS CDK where I can access ARN with from methods.able-doctor-68496
09/14/2021, 8:48 PMkubeconfig
in the pulumi_kubernetes.Provider
, but it still seems to be getting the kubeconfig from my ~/.kube/config
somehow… I tried pulumi --logtostderr -v=9
, but I see the correct kubeconfig logged multiple times, and then it errors out with: error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://wrong-domain:443/openapi/v2?timeout=32s>": dial tcp: lookup wrong-domain on 192.168.1.1:53: no such host
gorgeous-minister-41131
09/14/2021, 9:48 PMgorgeous-minister-41131
09/14/2021, 9:49 PMgorgeous-minister-41131
09/14/2021, 9:49 PMDiagnostics:
fastly:index:Servicev1 (<redacted>.com):
error: 1 error occurred:
* updating urn:pulumi:prod::fastly-py::fastly:index/servicev1:Servicev1::<redacted>.com: 1 error occurred:
* missing required field 'ServiceVersion'
gorgeous-minister-41131
09/14/2021, 9:49 PMgorgeous-minister-41131
09/14/2021, 10:01 PMearly-agent-11726
09/15/2021, 1:02 AMwhite-cat-90296
09/15/2021, 10:23 AMBitbucket Pipelines
yml file working with pulumi? I've integrated pulumi with GitHub Actions before which was super straight forward, but I can't seem to find a good reference for Bitbucket Pipelines. My first thought is using the pulumi/pulumi docker image and building on top of that, but I'd love to see some examples if you have any. Thanks!brainy-church-78120
09/15/2021, 11:58 AMfuture-window-78560
09/15/2021, 1:32 PMsquare-car-84996
09/15/2021, 2:16 PMmammoth-king-17479
09/15/2021, 4:02 PM(node:1411) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/var/folders/r0/4twlwm257f3_6s79zz677ypm0000gn/T/automation-logs-up-kwf7vt/eventlog.txt'
I can verify that the directories up until automation-logs-up-kwf7vt
exist on my local machine. Any ideas of how I can resolve this?future-window-78560
09/15/2021, 4:27 PMsquare-car-84996
09/15/2021, 4:56 PMearly-kite-86569
09/15/2021, 7:34 PMdefault_bucket
(from https://www.pulumi.com/docs/reference/pkg/gcp/appengine/application/) full details with get_bucket
(https://www.pulumi.com/docs/reference/pkg/google-native/storage/v1/getbucket/)
# Get created bucket
self.full_bucket_details = storage.get_bucket(
self.firestore_app.default_bucket,
opts=pulumi.InvokeOptions(parent=self.firestore_app),
)
Does not work because it tries to get the bucket before the resource is created:
Exception: invoke of google-native😒torage/v1:getBucket failed: invocation of google-native😒torage/v1:getBucket returned an error: error sending request: googleapi: Error 400: Invalid bucket name: '{bucket}', invalid
able-doctor-68496
09/15/2021, 9:12 PMpulumi.debug
or <http://pulumi.info|pulumi.info>
? I have tried stuff mentioned here: https://www.pulumi.com/docs/troubleshooting/#diagnosing-issues, but I don’t know what level of verbosity I need for my own debug logs, and I haven’t been able to find my logs even I set --logtostderr
and -v=9
. Also, where do I go to view logs if I don’t use --logtostderr
?early-boots-60919
09/15/2021, 9:32 PMCostFilters
map.
_, err = budgets.NewBudget(ctx, "test-budget", &budgets.BudgetArgs{
BudgetType: pulumi.String("COST"),
CostFilters: pulumi.StringMap{
"TagKeyValue": pulumi.String(`["stack$test"]`),
},
LimitAmount: pulumi.String(budgetAmount),
LimitUnit: pulumi.String("USD"),
TimeUnit: pulumi.String("MONTHLY"),
})
Diagnostics:
aws:budgets:Budget (test-budget):
error: aws:budgets/budget:Budget resource 'test-budget' has a problem: Attribute should be a list. Examine values at 'Budget.CostFilters'.
Tried the example in the docs: https://www.pulumi.com/docs/reference/pkg/aws/budgets/budget/#example-usage, but just get a compilation error:
Invalid composite literal type: String
Missing key in the map literal
Anyone has a working example?future-window-78560
09/15/2021, 11:16 PMtall-beard-99429
09/16/2021, 8:49 AMbetter-zoo-17970
09/16/2021, 2:55 PMpulumi config --config-file
crooked-pillow-11944
09/16/2021, 10:45 PMhappy-angle-19851
09/17/2021, 11:30 AMbetter-baker-47643
09/17/2021, 2:01 PMerror: 1 error occurred:
* updating urn:pulumi:staging::connection::aws:s3/bucket:Bucket::pulumi-staging-my-bucket: 1 error occurred:
* AccessDenied: Access Denied
status code: 403, request id: F72W8ZNDNM1BM1W9, host id: /2Z31uOorObZpN2gwgD59eWLKKhcrNvtqonR/ThWQng9kDDHBSaY5jaO/gx4u1BJFDqXLcSr/iU=
I've added all the s3 permissions that could possibly be relevant and tried debugging with v=9
but can't see the command that is failing. Is there a way to output each AWS command being sent that I'm missing? tried looking through the docs and github issues but haven't found anythingmysterious-piano-88140
09/18/2021, 8:53 AMbroad-kilobyte-43768
09/18/2021, 8:55 PMpulumi up
locally it works, but it fails with this error whenever the provider is used on my GitHub action.
THING creating error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided
This is my infra code on a repo called "api"
const sharedInfrastructure = new pulumi.StackReference(sharedInfraStackName)
const provider = new k8s.Provider('k8s', {
kubeconfig: sharedInfrastructure.getOutput('kubeConfig'),
})
// use provider...
Action
name: Infrastructure push
on:
push:
branches:
- main
paths:
- 'infrastructure/**'
jobs:
apply:
name: Apply infrastructure
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
- run: cd infrastructure && npm install
- uses: pulumi/actions@v3
with:
command: up
stack-name: dev
work-dir: ./infrastructure
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
Here's how I create my kubernetes cluster in another shared infra repo:
import * as digitalocean from '@pulumi/digitalocean'
import * as k8s from '@pulumi/kubernetes'
const cluster = new digitalocean.KubernetesCluster('cluster', {
region: digitalocean.Region.LON1,
version: 'latest',
nodePool: {
name: 'default',
size: digitalocean.DropletSlug.DropletS2VCPU2GB,
nodeCount: 1,
},
})
export const kubeConfig = cluster.kubeConfigs[0].rawConfig
Does anyone have any tips to solve this?crooked-pillow-11944
09/19/2021, 12:15 PMfuture-window-78560
09/19/2021, 9:20 PMsalmon-printer-16080
09/19/2021, 9:53 PMhandsome-state-59775
09/20/2021, 6:02 AMpulumi config refresh
puts the refreshed stack config file in my home directory instead of the current directory that also has the current config and Pulumi.yaml. What can I do to fix this?handsome-state-59775
09/20/2021, 6:02 AMpulumi config refresh
puts the refreshed stack config file in my home directory instead of the current directory that also has the current config and Pulumi.yaml. What can I do to fix this?