calm-quill-21760
02/27/2020, 7:45 PMlet thisGroup = createdSecGroups.get(thisGroupName);
if (item.allowed_other_sec_grps && item.allowed_other_sec_grps.length > 0) {
for (let allowed of item.allowed_other_sec_grps) {
let theOtherSecGrp = createdSecGroups.get(allowed + "_" + vpc);
if (theOtherSecGrp && thisGroup) {
thisGroup.egress.get().forEach(entry => {
entry.securityGroups = theOtherSecGrp!.id;
});
}
}
}
This line is invalid:
entry.securityGroups = theOtherSecGrp!.id;
It looks like securityGroups wants a resolved string[] value. I'm guessing this is another case where I'm thinking about this all wrong... Suggestions are appreciated!swift-painter-31084
02/27/2020, 10:37 PMbitter-zebra-93800
02/27/2020, 11:04 PMable-monitor-26199
02/28/2020, 4:34 AMswift-painter-31084
02/29/2020, 1:41 AMwet-sunset-4939
03/01/2020, 4:44 AMglamorous-printer-66548
03/01/2020, 7:47 AMhandsome-xylophone-18806
03/01/2020, 11:49 AM#Pulumi.network.dev.yaml
encryptionsalt: ....
config:
aws:region: us-east-2
network:env.name: dev
#Pulumi.services.dev.yaml
encryptionsalt: ....
config:
aws:region: us-east-2
services:env.name: dev
#Pulumi.network.prod.yaml
encryptionsalt: ....
config:
aws:region: us-east-1
network:env.name: prod
#Pulumi.services.prod.yaml
encryptionsalt: ....
config:
aws:region: us-east-1
services:env.name: prod
Is this possible to extract common configurations to a file and import it when needed?
For example, I would like to have something similar to this:
#Pulumi.common.dev.yaml
encryptionsalt: ....
config:
aws:region: us-east-2
common:env.name: dev
#Pulumi.network.dev.yaml
encryptionsalt: ....
config:
aws:region: {{common.dev/aws:region}}
network:env.name: {{common.dev/common:env.name}}
Or do you have other ideas to solve this issue?gorgeous-elephant-23271
03/01/2020, 12:48 PMgorgeous-elephant-23271
03/01/2020, 12:49 PMbitter-dentist-28132
03/02/2020, 4:31 PMvictorious-helmet-11068
03/02/2020, 4:40 PMbitter-dentist-28132
03/02/2020, 6:04 PMStackReference
?bitter-dentist-28132
03/02/2020, 6:58 PMinvalid Amazon S3 ARN, unknown resource type, arn:aws:s3:::bucket-name
bitter-dentist-28132
03/02/2020, 7:54 PMprehistoric-account-60014
03/02/2020, 8:49 PMechoing-breakfast-73834
03/02/2020, 10:31 PMpulumi up --replace $urn && pulumi up
to replace a resource and update it's dependencies? I tried --target-replacement $urn --target-dependents
but the dependents didn't get updated/replaced until I ran pulumi up
again.echoing-breakfast-73834
03/02/2020, 10:59 PMfreezing-flag-53289
03/03/2020, 12:15 AMparent:
block of another resource? I got stuck because I can unwrap the promise to check the string, but I can't seem to do that and keep a reference to the resource which is what I actually need.
For example, say I created a bunch of kubernetes.core.v1.Namespace
resources in a function and now I have an array of them. What's the right way to do this:
// namespaces is an array of kubernetes.core.v1.Namespace
const myNamespace = namespaces.find(
ns => ns.metadata.name === 'mynamespace' // Usual Output<string> is not a string problem
);
// Use mynamespace as parent
new k8s.helm.v2.Chart(
'myChart',
{
path: chartPath,
},
{
parent: myNamespace
}
);
glamorous-printer-66548
03/03/2020, 1:47 AMpulumi.runtime
or some other thing at runtime and use it in my config?big-potato-91793
03/03/2020, 1:35 PMwet-sunset-4939
03/03/2020, 3:22 PMconst order = new azure.appservice.CertificateOrder('sample-dev', {
name: 'sample-dev',
csr: '*.host.dev',
autoRenew: true,
...group,
location: 'global',
productType: 'WildCard',
validityInYears: 3
});
gray-city-50684
03/03/2020, 4:11 PMgray-city-50684
03/03/2020, 4:45 PMbitter-dentist-28132
03/03/2020, 5:08 PMbitter-zebra-93800
03/03/2020, 7:32 PMbright-orange-69401
03/04/2020, 9:56 AMpulumi up
Has anyone succeeded in a similar project ? Code example would be epicfierce-cpu-94517
03/04/2020, 10:00 AMpulumi login --local
2. pulumi stack init my-stack
(entered passphrase)
3. aws-vault exec my-profile -- pulumi up
. got an error. some resources provisioned.
4. fixed stuff
5. aws-vault exec my-profile -- pulumi up
. started getting error: decrypting secret value: failed to decrypt: incorrect passphrase, please set PULUMI_CONFIG_PASSPHRASE to the correct passphrase
6. weirder: pulumi stack ls
returns empty list of stacks
what is going on?wet-sunset-4939
03/04/2020, 3:08 PMbumpy-exabyte-11757
03/04/2020, 4:46 PM