rough-parrot-6341
10/05/2020, 12:02 AMrough-parrot-6341
10/05/2020, 12:11 AMignoreChanges
only works for properties defined in the code, not for what pulumi checks for state-syncrough-parrot-6341
10/05/2020, 12:17 AMrough-parrot-6341
10/05/2020, 12:17 AMlimited-rainbow-51650
10/05/2020, 7:44 AMComponentResource
, is it obliged to create my resources in the constructor? Or can I delay the creation of (some of) them?
Also inside of its constructor, you will allocate any child resources, passing thehttps://www.pulumi.com/docs/intro/concepts/programming-model/#authoring-a-new-componentoption as appropriate to ensure component children are parented correctly.parent
handsome-dinner-91163
10/05/2020, 9:12 AMnutritious-shampoo-16116
10/05/2020, 10:28 AMmysterious-portugal-46322
10/05/2020, 10:45 AMorange-dog-73995
10/05/2020, 11:10 AMjolly-lifeguard-22556
10/05/2020, 1:09 PMrough-parrot-6341
10/05/2020, 1:45 PMrough-parrot-6341
10/05/2020, 1:45 PMrough-parrot-6341
10/05/2020, 1:46 PMelegant-island-39916
10/05/2020, 3:23 PMinfra-dev
, services-dev
, infra-prod
, services-prod
Though that is a bit of a pain to manage and would make sense to simply namespace on a project level rather than purely via stacks. Is there a way around this that allows setting up multiple projects with the same stack name, similar to how the documentation outlines? https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/#inter-stack-dependenciesnutritious-shampoo-16116
10/05/2020, 4:07 PMOutput
which will grab that from another place, is there a way to "cast" a string to pulumi output so that the output will be consistent?millions-furniture-75402
10/05/2020, 4:07 PM> pulumi update --skip-preview --yes -v=6
Updating (catmeme/pulumi-v1-102)
View Live: <https://app.pulumi.com/>...
pulumi:pulumi:Stack gameserver-pulumi-v1-102 creating
@ Updating........
+ pulumi:pulumi:Stack gameserver-pulumi-v1-102 creating error: an unhandled error occurred: Program exited with non-zero exit code: -1
+ pulumi:pulumi:Stack gameserver-pulumi-v1-102 **creating failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (gameserver-pulumi-v1-102):
error: an unhandled error occurred: Program exited with non-zero exit code: -1
Resources:
+ 1 created
Duration: 1m55s
How can I debug this failure further? I’m using -v=6 and not getting any helpful outputnutritious-shampoo-16116
10/05/2020, 4:08 PMmillions-furniture-75402
10/05/2020, 4:14 PMfew-pillow-1133
10/05/2020, 4:53 PMkind-mechanic-53546
10/06/2020, 12:47 AMaws.iam.getPolicyDocument
?
The below works, but is nasty, casting to any just to avoid compile time errors about transforming from output to string
const assumeDevelopersRolePolicyData = await aws.iam.getPolicyDocument({
version: "2012-10-17",
statements: [
{
effect: "Allow",
actions: ["sts:AssumeRole"],
resources: [
<any>(
pulumi.interpolate`arn:aws:iam::${dev_account_id}:role/${devRole.name}`
),
],
},
],
});
Or is the only reason this is working currently is that I'm lucky and it'll fail at some point in the future 🙂worried-queen-62794
10/06/2020, 1:17 AMaws_vpc
that is shown in some of the Python examples? For example: https://www.pulumi.com/docs/reference/pkg/aws/ec2/securitygroup/#example-usagequick-city-76163
10/06/2020, 4:19 AMfunction createVpc(provider: ProviderResource) {
new aws.ec2.Vpc(`${provider.id}-main`, {
cidrBlock: "10.0.0.0/16",
}, {provider: provider});
}
Using the code exactly as it is in my example yields the error:
error: Duplicate resource URN 'urn:pulumi:main::acddevops-eks::aws:ec2/vpc:Vpc::Calling [toString] on an [Output<T>] is not supported.
worried-queen-62794
10/06/2020, 9:01 AMOutputs:
- bucket_name: "tlayen-pulumi-demo"
In the output when I have long deleted that output?bland-lamp-16797
10/06/2020, 2:59 PMadamant-translator-31969
10/06/2020, 3:24 PMloud-egg-62954
10/06/2020, 3:59 PMallow all
firewall rule? I'd like to enable all traffic on all ports within a subnetworkworried-queen-62794
10/07/2020, 1:39 AMconfig.require('role')
that it doesn't expect it to be prefixed with the name as in foo:role
?worried-queen-62794
10/07/2020, 1:39 AMworried-queen-62794
10/07/2020, 1:42 AMambitious-father-68746
10/07/2020, 9:37 AM