kind-school-28825
12/29/2020, 2:36 PMDiagnostics:
pulumi:pulumi:Stack (lambda-func-auth-send-welcome-email-development):
error: update failed
aws:lambda:Function (auth-send-welcome-email):
error: 1 error occurred:
* error creating Lambda Function: ValidationException:
status code: 400, request id: f88cc8e4-4096-46d3-b03d-f708669aafa3
In my opinion this is not enough, and I am pretty sure AWS API returns an error message with more details on exactly the reason of this exception happening that is unique to my request. It is difficult to debug where things went wrong.
Correct me If I am wrong about my assumption..straight-librarian-43739
12/29/2020, 8:11 PMProviderArgs
) between stacks? If I export a provider from one stack and access it with another via StackReference
I seem to get it as a Promise<Provider>
but this doesn’t let me actually use it as a Provider
(Typescript)great-dog-65117
12/30/2020, 3:12 AMpulumi init
? Im using python, and would like to have code like this in my `__main.py__`:
import pulumi_gcp as gcp
import pulumi
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--machine-type",help="Specify GCP machine type", default="n1-standard-1")
args = parser.parse_args()
default = gcp.compute.Instance("ubuntu-1804",
[..]
machine_type=args.machine_type,
[..]
)
This way, machine_type
could become an argument, and of course the same can be applied to many other things, like disk sizes and so on, without touching the code.
How can achieve this effect?loud-shampoo-49194
12/30/2020, 11:07 AMlimited-rainbow-51650
12/30/2020, 2:07 PMfamous-kite-69533
12/30/2020, 4:17 PMfamous-kite-69533
12/30/2020, 4:18 PM--logtostderr
fresh-summer-65887
12/30/2020, 8:04 PMpulumi login
is a machine wide thing?green-school-95910
12/30/2020, 9:22 PMimportant-appointment-55126
12/30/2020, 9:56 PMsparse-area-20648
12/30/2020, 11:59 PMenough-butcher-66045
12/31/2020, 12:30 AM- task: Pulumi@1
inputs:
azureSubscription: 'Test (bla-bla)'
command: "up"
cwd: "MyProject.Infrastructure/"
stack: 'dev'
args: '--yes'
- script:
echo "##vso[task.setvariable variable=test;isOutput=true]$(pulumi stack output test)"
displayName: 'Set stack outputs as variables'
name: 'pulumi'
- bash: |
echo "Using an input-macro works: $(test)"
Hi peeps, a question. If I run pulumi stack output test
it gives me the output I'm expecting, and I can see in the logs that the pulumi outputs are correctly being registeredenough-butcher-66045
12/31/2020, 12:31 AMenough-butcher-66045
12/31/2020, 12:31 AMenough-butcher-66045
12/31/2020, 1:52 AMcurved-waitress-45592
01/01/2021, 1:41 AMPersistentVolumeClaim
object and then refer its name in another object (a CronJob
)curved-waitress-45592
01/01/2021, 1:42 AMresource_name
I used because Pulumi changes names... which is fine. But how to get the name? I the .id
field of the resource almost get me there but it includes the namespace in there. I just want the "new" name.curved-waitress-45592
01/01/2021, 1:52 AM--cache-from
argument when calling docker build .
. We'd usually do something like --cache-from=<http://registry.com/dir/image:latest|registry.com/dir/image:latest>
and then update the latest tag to the newly built and pushed image.curved-waitress-45592
01/01/2021, 1:53 AMclass Image(pulumi.ComponentResource)
curved-waitress-45592
01/01/2021, 1:53 AMcurved-waitress-45592
01/01/2021, 1:55 AMbright-printer-59109
01/03/2021, 1:36 PMfull-dress-10026
01/03/2021, 11:40 PMaws:ecs:TaskDefinition
on every up
run even though nothing has changed. Looking at the diff output for the containerDefinitions parameter on the TaskDefinition, I can see the only difference is on both my containers, mountPoints
, portMappings
, user
, and volumesFrom
currently exist as empty arrays (except user which is "0"
) and do not exist in the desired TaskDefinition. I am not setting these properties.jolly-lunch-12979
01/04/2021, 12:33 PM--show-reads
property not work correctly for diffs? Whenever I do a preview --diff
it shows reads without that flag set.cuddly-xylophone-65881
01/04/2021, 12:45 PMswift-hamburger-98290
01/04/2021, 5:11 PMResourceTransformations
(dotnet azure sdk)? Thanksimportant-appointment-55126
01/04/2021, 5:21 PMCertificateValidation
resource to be used in a Depends
later in the program so that the Cloudfront CDN isn’t created before validation is complete…
s.cert.DomainValidationOptions.ApplyT(func(opts []acm.CertificateDomainValidationOption) (*acm.CertificateValidation, error) {
var fqdns pulumi.StringArray
for i, opt := range opts {
certValidationDomain, err := route53.NewRecord(ctx, fmt.Sprintf("%s-%d-validation", s.hostname, i), &route53.RecordArgs{
Name: pulumi.String(*opt.ResourceRecordName),
Type: pulumi.String(*opt.ResourceRecordType),
Records: pulumi.StringArray{pulumi.String(*opt.ResourceRecordValue)},
ZoneId: s.zoneId, // zone.ID(),
Ttl: <http://pulumi.Int|pulumi.Int>(600),
})
if err != nil {
return nil, fmt.Errorf("create route53 validation record failed: %v", err)
}
fqdns = append(fqdns, certValidationDomain.Fqdn)
}
return acm.NewCertificateValidation(ctx, "certValidation", &acm.CertificateValidationArgs{
CertificateArn: s.cert.Arn,
ValidationRecordFqdns: fqdns,
}, pulumi.Provider(s.usEast1))
})
important-appointment-55126
01/04/2021, 6:30 PMCertificateArn
but ApplyString
converts that StringOutput
to an AnyOutput
it appears, which i can’t then use as the input for creating the distributionastonishing-quill-88807
01/04/2021, 7:23 PMdelete_before_replace
but Pulumi seems to be ignoring that advice and still trying to create the resource before deleting the original. In this case it's a Vault Mount that is part of a component resource. I've tried passing the resource options to the entire component, and to just the Mount resource with no luck.astonishing-quill-88807
01/04/2021, 7:37 PM