worried-painting-67291
08/24/2020, 9:26 PMbusy-magazine-48939
08/25/2020, 4:03 AMnice-portugal-52925
08/26/2020, 10:41 PMgcp container registry
? I keep running into this issue:
error: Error: ' docker login' failed with exit code 1
at /Documents/work/infra/node_modules/@pulumi/docker.ts:583:15
at Generator.next (<anonymous>)
at fulfilled (/Documents/work/infra/node_modules/@pulumi/docker/docker.js:18:58)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
error: Error response from daemon: login attempt to <https://www.googleapis.com/v2/> failed with status: 404 Not Found
nice-portugal-52925
08/26/2020, 10:43 PMexport const registry = new gcp.container.Registry("registry", {
location: "US",
project: "dev",
});
const services = ["service1"]
export const services = services.reduce((acc, serviceName) => {
acc[serviceName] = new docker.Image(`backend-${serviceName}`, {
imageName: `${pulumi.getProject()}-${serviceName.toLowerCase()}`,
build: {
context: "../backend",
dockerfile: `../backend/${serviceName}.prod.dockerfile`,
},
registry: {
server: registry.bucketSelfLink,
username: user,
password: pass,
},
})
return acc
}, {})
cuddly-smartphone-89735
08/27/2020, 5:30 PMtype SkuTier = "Free" | "Paid"
instead of just string
that allows all kinds of inputs?numerous-psychiatrist-20856
08/27/2020, 6:02 PMimport * as awsx from "@pulumi/awsx";
const repository = new awsx.ecr.Repository("repository");
export const ecrRepository = repository;
and application code:
import * as pulumi from "@pulumi/pulumi";
import * as awsx from "@pulumi/awsx";
const env = pulumi.getStack();
const infra = new pulumi.StackReference(`cakper/infrastructure/${env}`);
infra.requireOutput("ecrRepository").apply(repository => {
const repo = new awsx.ecr.Repository("repository", repository);
});
problem that I'm running into, is that I can't properly reference the repository and both stacks end up creating it. Can someone please help me wrap my head around it? 🙂breezy-butcher-78604
09/07/2020, 3:32 AMpulumi.dynamic.Resource
but when I run pulumi up
it shows up with the type pulumi-nodejs:dynamic:Resource
.limited-rainbow-51650
09/08/2020, 5:55 PM<http://pulumi.log.info|pulumi.log.info>(...)
during preview
operations? I want to debug ResourceTransformation
callback functions.red-area-47037
09/09/2020, 9:00 PMsteep-angle-29984
09/10/2020, 9:02 AMsecret.metdata.name.apply(applyFunc)
-> In this case the applyFunc is executed in preview phase and 'undefined' is passed as value
Second try:
secret.metdata.apply(applyFunc)
-> In this case the applyFunc is not executed in preview phase
Does anyone know if the different behavior is intended?limited-rainbow-51650
09/10/2020, 3:13 PMOutput<string>
coming from StackReference.requireOutput(<key>)
. I now need the string
value so I can pass it as one of the properties to azure.network.getVirtualNetwork({ string, string })
. How can I do that?worried-painting-67291
09/10/2020, 11:58 PMconst mybucket = new aws.s3.Bucket(...)
has completed. I tried to do
mybucket.bucket.apply(bkt => ...}
worried-painting-67291
09/10/2020, 11:58 PMworried-painting-67291
09/10/2020, 11:58 PMworried-city-86458
09/11/2020, 2:00 AMif (!pulumi.runtime.isDryRun()) { }
? i.e. inside the apply
worried-painting-67291
09/11/2020, 2:00 AMdazzling-sundown-39670
09/11/2020, 9:30 AMred-area-47037
09/11/2020, 10:20 AMnutritious-flower-51098
09/11/2020, 10:32 AMargs.resources.filter(r => r.isType(kubernetes.helm.v3.Chart)).map( resource => {
<http://pulumi.log.info|pulumi.log.info>(`We have a resource ${resource.type} = ${resource.name}`)
}) // This doesn't print out anything
But if we remove .filter()
, we can see our kubernetes:<http://helm.sh/v3:Chart|helm.sh/v3:Chart>
resource. Shouldn’t this work?eager-analyst-8893
09/11/2020, 2:41 PMvpc.publicSubnetIds
to String? (there is don't have apply
...)incalculable-dawn-53071
09/14/2020, 11:42 AMincalculable-dawn-53071
09/14/2020, 11:42 AMTypeError: Class extends value undefined is not a constructor or null
many-psychiatrist-74327
09/14/2020, 5:01 PMdeleteBeforeReplace
behavior when using the @pulumi/eks
package?
More specifically, I want to basically call:
const cluster = new eks.Cluster('my-cluster', {}, { deleteBeforeReplace: true })
but looks like the property deleteBeforeReplace
does not exist in ComponentResourceOptions.
(asking in #typescript since this library is only available for TS/JS, but may cross-post to #aws )breezy-butcher-78604
09/15/2020, 3:45 AMgetVpc()
call immediately?mammoth-elephant-55302
09/15/2020, 5:23 AMimport * as gcp from '@pulumi/gcp';
import { asset, interpolate } from '@pulumi/pulumi';
export function createServerlessInvokedVM(opts: ContainerSettings): gcp.cloudfunctions.Function
breezy-butcher-78604
09/15/2020, 7:06 AMaws.s3.BucketObjects
defined in the same template. If the contents of these files change, they are correctly identified as requiring an update, but because their file names don't change, the instance's user data doesn't change and therefore the instance isn't flagged for any changes.
i'm hoping I can tell Pulumi that the instance needs replacing if any of the files are updated - is this doable?calm-parrot-72437
09/15/2020, 5:18 PMbreezy-butcher-78604
09/16/2020, 9:39 AMpanic: fatal: An assertion has failed: Expected diff to not require deletion or replacement during Update of <instance-urn>
goroutine 659 [running]:
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc000f52c00|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc000f52c00>, 0x6005215, 0x48, 0xc000bcb7a8, 0x1, 0x1)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/go/common/util/contract/assert.go:33 +0x197
<http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0007fe1c0|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0007fe1c0>, 0x6a97a00, 0xc00187a690, 0xc001136700, 0xc0007fe1c0, 0x5295201, 0xc001d66140)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.7.3/pkg/tfbridge/provider.go:971 +0x81d
<http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x6a97a00|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x6a97a00>, 0xc00187a690, 0x5d22400, 0xc001136700, 0x5d19580, 0xaa6b360, 0x6a97a00, 0xc00187a690)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/proto/go/provider.pb.go:1920 +0x89
<http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x6a97a00|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x6a97a00>, 0xc00187a330, 0x5d22400, 0xc001136700, 0xc0007ee3e0, 0xc0007ee400, 0x0, 0x0, 0x69d9820, 0xc0004ae010)
/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2eb
<http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x5ddd380|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x5ddd380>, 0xc0007fe1c0, 0x6a97a00, 0xc00187a330, 0xc00125f560, 0xc0007ee080, 0x6a97a00, 0xc00187a330, 0xc000195500, 0x290a)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.1-0.20200825190708-910aa96016cd/proto/go/provider.pb.go:1922 +0x14b
<http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc0007fe000|google.golang.org/grpc.(*Server).processUnaryRPC(0xc0007fe000>, 0x6abc2e0, 0xc001220480, 0xc000883000, 0xc0007ec390, 0xaa2d518, 0x0, 0x0, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1171 +0x50a
<http://google.golang.org/grpc.(*Server).handleStream(0xc0007fe000|google.golang.org/grpc.(*Server).handleStream(0xc0007fe000>, 0x6abc2e0, 0xc001220480, 0xc000883000, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1494 +0xccd
<http://google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0008244e0|google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0008244e0>, 0xc0007fe000, 0x6abc2e0, 0xc001220480, 0xc000883000)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:834 +0xa1
created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:832 +0x204
i have no idea whats causing it. any ideas?kind-addition-90773
09/16/2020, 7:19 PMError: providerCredentialOpts and AWS config setting aws:profile must be set together
kind-addition-90773
09/16/2020, 7:19 PMkind-addition-90773
09/16/2020, 7:19 PMbest-lifeguard-91445
09/16/2020, 9:34 PMproviderCredentialOpts
like so:
providerCredentialOpts: {
profileName: aws.config.profile,
roleArn: yourRoleHere.arn
},
kind-addition-90773
09/16/2020, 11:18 PM