limited-island-40412
11/13/2020, 7:57 AMpulumi login
pulumi stack select dev
echo "##vso[task.setvariable variable=webapp.billingApi]$(pulumi stack output billingApi)"
and the stack cannot be found. I set the same working directory as in the pulumi task.
2020-11-12T12:05:15.7625612Z Logged in to xxx as vsts (azblob://***-infrastructure)
2020-11-12T12:05:16.1752240Z error: no stack named 'dev' found
2020-11-12T12:05:16.2685326Z error: no stack selected; please use `pulumi stack select` to choose one
How can I figure out whats wrong? I don’t see any error. Even in verbose output. My state is stored in an azure blob storage containernumerous-artist-1705
11/13/2020, 9:20 AMtf.json
files? Or even .tf
? That could help transitioning by just using the Pulumi CLI referencing existing Terraform code. I appreciate maintaining something that works with the HCL language is a big overhead, but, at least supporting tf.json
should be more trivial. Also, as Pulumi has already tf2pulumi
, probably part of the work of parsing HCL is already there.able-shampoo-38014
11/13/2020, 2:23 PMconst ecrRepository = new aws.ecr.Repository('batch-services-pulumi', {
name: 'batch-services-pulumi',
imageScanningConfiguration: {
scanOnPush: true,
},
imageTagMutability: 'MUTABLE',
});
const batchJobDefinition = new aws.batch.JobDefinition(
'image_processor_pulumi',
{
name: 'image_processor_job_definition_pulumi',
retryStrategy: { attempts: 3 },
timeout: { attemptDurationSeconds: 1200 },
containerProperties: `{
"command": [ "blah" ],
"image": "${ecrRepository.repositoryUrl}",
"memory": 1024,
"vcpus": 1,
"otherprops" ...
}
`,
type: 'container',
},
{
dependsOn: [ecrRepository],
},
);
The template literal is throwing an error when using pulumi preview
error: aws:batch/jobDefinition:JobDefinition resource 'image_processor_pulumi' has a problem: AWS Batch Job container_properties is invalid: Error decoding JSON: invalid character '\n' in string literal
after debugging, it looks like its applying this value
{
"command": [ "blah" ],
"image": Calling [toString] on an [Output<T>] is not supported.
To get the value of an Output<T> as an Output<string> consider either:
1: o.apply(v => `prefix${v}suffix`)
2: pulumi.interpolate `prefix${v}suffix`
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of @pulumi/pulumi.,
"memory": 1024,
"vcpus": 1,
morestuff ...
}
we tried to use apply and interpolate to formate and that seems to work outside of the template literal, but not when its applied inside. Any help would be appreciated (this is our last hurdle to get a working POCred-area-47037
11/13/2020, 2:43 PMcurved-summer-41191
11/13/2020, 6:26 PMgithub:token
; it keeps showing up as token
- anything else (foo:bar) will show as such... is this a bug?dazzling-sundown-39670
11/13/2020, 9:27 PMbright-orange-69401
11/14/2020, 9:10 AMbright-orange-69401
11/14/2020, 9:18 AMboto3
definitely has them !
I kinda wonder how I can interact with the pulumi_aws.Provider
instance to share credentials and stuff : should I declare it as a dependency of my dynamic.Resource
? If so, what should be the link between the pulumi_aws.Provider
and my dynamic.Provider
?
We've achieved some working examples with my team but I'm not quite satisfied with it : most of the time we ended up with unstable stacks and locked states (had to pulumi stack export/import
)rich-alligator-22189
11/14/2020, 1:38 PM<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pulumi.Azure" Version="3.*" />
</ItemGroup>
</Project>
purple-alarm-70362
11/14/2020, 4:10 PMclean-dentist-2515
11/14/2020, 5:46 PMThe public key. If this is a file, it can be read using the file interpolation functionwhere can I find this "file interpolation function"?
clean-dentist-2515
11/14/2020, 11:10 PMid
is str
type:
https://www.pulumi.com/docs/reference/pkg/digitalocean/droplet/#id_python
but the droplet_id
input for the volume attachment is `int`:
https://www.pulumi.com/docs/reference/pkg/digitalocean/volumeattachment/#droplet_id_python
pulumi up
fails with:
VolumeAttachment resource 'pgb-dokku-db-vol-attachment' has a problem: Attribute must be a whole number, got 216866671
if I try to cast the output id as int(droplet.id)
(in python) I get:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Output'
is there a workaround?clean-dentist-2515
11/14/2020, 11:12 PMbroad-dog-22463
11/14/2020, 11:12 PMclean-dentist-2515
11/14/2020, 11:13 PMclean-dentist-2515
11/14/2020, 11:13 PMbroad-dog-22463
11/14/2020, 11:14 PMbroad-dog-22463
11/14/2020, 11:14 PMclean-dentist-2515
11/14/2020, 11:16 PMelegant-window-55250
11/14/2020, 11:21 PMchilly-hairdresser-56259
11/14/2020, 11:56 PMwonderful-manchester-62734
11/15/2020, 8:41 AMwonderful-manchester-62734
11/15/2020, 8:41 AMbored-intern-60856
11/15/2020, 3:35 PMbored-intern-60856
11/15/2020, 3:36 PMbored-intern-60856
11/15/2020, 3:38 PMelegant-dress-88912
11/16/2020, 12:39 PMis already being used by
message.able-crayon-21563
11/16/2020, 5:17 PMUser is not a member of Pulumi organization’s backing identity provider.The user appears in the list, I click +, get above message. Any ideas? Thanks.
fast-dinner-32080
11/16/2020, 5:44 PMbroad-dog-22463
11/16/2020, 5:44 PM