nutritious-shampoo-16116
07/06/2021, 1:38 PMecs_target_groups = [
{'arn': target_group_4004.arn, 'port': target_group_4004.port},
{'arn': target_group_443.arn, 'port': target_group_443.port},
]
pulumi.export('ecs_target_groups', ecs_target_groups)
But this code is giving me null for the two resources already exported previously
ecs_target_groups = [
{'arn': target_group_4004.arn, 'port': target_group_4004.port},
{'arn': target_group_443.arn, 'port': target_group_443.port},
]
temp_ecs_target_groups = [
{'arn': target_group_4004.arn, 'port': target_group_4004.port},
{'arn': target_group_443.arn, 'port': target_group_443.port},
{'arn': target_group_4000.arn, 'port': target_group_4000.port},
]
pulumi.export('ecs_target_groups', ecs_target_groups)
pulumi.export('temp_ecs_target_groups', temp_ecs_target_groups)
bright-sandwich-93783
07/06/2021, 1:59 PMpulumi.DependsOn
option requires a resource. Is there a way to enforce dependency on `Outputs`instead? Since I cannot implement a custom resource provider in Go, the best I can do is use an ApplyT
call on an output to make manual API calls, and reeturn a BoolOutput
to indicate success or not. I would like subsequent resources created to Depend On
that BoolOutput
. Any thoughts?bright-sandwich-93783
07/06/2021, 2:02 PMresource1 := NewResource(...)
output2 := resource1.output1.ApplyT(func(s) bool {
// make API calls to external service
return true
}
resource2 := NewResource(..., pulumi.DependsOn(output2))
^ arg requires pulumi.Resource
damp-school-17708
07/06/2021, 2:21 PM--platform
flag into the pulumi code I get back an error, that the command is not right.
If I copy the command and paste into the terminal as-is the docker build works...
I've put a very simple sample into github to reproduce https://github.com/aterreno/pulumi-docker-multiarch
What's the best repo to open an issue on github @pulumi/pulumi?
Or am I missing something else and it's not a bug?
Thanksmany-yak-61188
07/06/2021, 3:24 PMgithub actions + python source managed by poetry + pulumi-aws also managed by poetry
most of the examples / documentation utilize pip
i'm running into an issue with my combination and figured I'd ask if someone had a pointerfull-island-88669
07/06/2021, 3:26 PMbucket.name
, but having an error:
'Bucket' object has no attribute 'name'
icy-football-94152
07/06/2021, 3:41 PMfull-island-88669
07/06/2021, 4:25 PMtall-scientist-89115
07/06/2021, 10:01 PMcrd2pulumi
still output installable CRD definitions? I noticed this in the docs, which is what I'm after:
new certificates.certmanager.CertificateDefinition("certificate");
but I'm not seeing anything like that after trying crd2pulumi on the certmanager yaml myself. I do get strongly typed access to the CRDs after they're created, but I have to build out the resource definitions myself to install them in the cluster..bumpy-summer-9075
07/06/2021, 11:29 PMRandomPassword
to generate a password, and then I use bcrypt to store the hash in my nginx configuration. Like so:
this.basicAuthPassword = new RandomPassword('basic-auth-password', {
length: 40,
special: false,
});
const passwordHash = this.basicAuthPassword.result.apply((password) => {
return hashSync(password);
});
unfortunately the hash generated changes every time because bcrypt generates a random hash. How can I deal with this with pulumi?numerous-table-61756
07/07/2021, 8:37 AMprovider = aws.Provider(
resource_name="foo",
region="eu-central-1",
profile="foo"
)
stack = pulumi.StackReference(
name="foo",
stack_name="foo",
opts=pulumi.ResourceOptions(provider=provider),
)
Unfortunately I'm getting an error:
pulumi:pulumi:StackReference (foo):
error: Preview failed: unrecognized resource type (Read): pulumi:pulumi:StackReference
Ideas? Is setting a provider for StackReference a feature in the first place?little-whale-73288
07/07/2021, 3:20 PMcuddly-lion-92829
07/07/2021, 4:11 PMshy-author-33795
07/07/2021, 7:53 PMorange-byte-86458
07/08/2021, 1:23 AMawsx.ec2.Vpc
to create a VPC for my EKS cluster. I need to make a slight change to the way NAT Gateway IPs are provisioned. Specifically, I want to create them separately so that I can detach them and preserve across VPC re-creations/configuration changes.
There’s no such customization in the AWSX’s Vpc, and I’m wondering if my only option is to re-create everything using RAW resources or maybe there’s a shortcut? Like maybe there’s a way to transform AWSX resources before they make it into the state or smth.. Thanks for any help!happy-alarm-59675
07/08/2021, 10:44 AM~ pulumi-python:dynamic:Resource: (update)
config : {
data: "test"
name: "admin"
}
It's showing that the resource needs updates, but it is not showing what is going to be updated. For comparison, when running the same code with 3.5.1:
~ pulumi-python:dynamic:Resource: (update)
~ config : {
~ data: "test" => "newstuff"
name: "admin"
}
Is this some kind of bug, or am I not aware of any changes and this is completely normal?quiet-plumber-89023
07/08/2021, 2:20 PMnew Pulumi.AzureNative.Sql.DatabaseVulnerabilityAssessmentRuleBaseline(baselineName, new Pulumi.AzureNative.Sql.DatabaseVulnerabilityAssessmentRuleBaselineArgs
{
BaselineName = baselineName,
DatabaseName = "master",
ResourceGroupName = resourceGroup.Name,
ServerName = sqlServer.Name,
RuleId = ruleID,
VulnerabilityAssessmentName = assessmentName,
BaselineResults = firewallBaselineArgs
}, new CustomResourceOptions { DependsOn = { sqlServer } });
But Im getting an error on deployment - whats the best way to await for this - adding a delay is a bit crude but works
Status=404 Code="ParentResourceNotFound" Message="Can not perform requested operation on nested resource. Parent resource 'sqlInstance/master' not found
Additionally subsequent deployments or teardowns I get the following:
"Vulnerability Assessment settings don't exist or invalid storage specified in settings 'storageContainerPath'
green-pencil-17360
07/08/2021, 2:29 PMpulumi up
 . It actually forced me to set up the pass-phrase when I created the stack. It is throwing me the following error.
constructing secrets manager of type "passphrase": unable to find either `PULUMI_CONFIG_PASSPHRASE` or `PULUMI_CONFIG_PASSPHRASE_FILE` when trying to access the Passphrase Secrets Provider; please ensure one of these environment variables is set to allow the operation to continue
gray-addition-15547
07/08/2021, 2:47 PMfull-island-88669
07/08/2021, 2:55 PMpulumi
CLI". What is the way to achieve this?lively-parrot-21122
07/08/2021, 2:56 PMbumpy-summer-9075
07/08/2021, 7:41 PMexport class MyResource extends pulumi.dynamic.Resource {
public readonly myStringOutput!: pulumi.Output<string>;
public readonly myNumberOutput!: pulumi.Output<number>;
constructor(name: string, props: MyResourceInputs, opts?: pulumi.CustomResourceOptions) {
super(myprovider, name, { myStringOutput: undefined, myNumberOutput: undefined, ...props }, opts);
}
}
from my own experimentation, it would seem that passing myStringOutput: undefined
to super
is how the property this.myStringOutput
is populated... I'm really weirded out by this, they are not the same variable/reference and there's very little documentation on it. How are they "linked" together?bored-monitor-99026
07/08/2021, 10:09 PMterraform-provider-aiven
in the pulumi github org. can they directly be used by pulumi project?bored-monitor-99026
07/08/2021, 11:44 PMmake prepare
by following pulumi-tf-provider-boilerplate readme
i have the following error, anyone has idea what i did wrong here?
mv "provider/cmd/pulumi-tfgen-x""yz" provider/cmd/pulumi-tfgen-foo
mv "provider/cmd/pulumi-resource-x""yz" provider/cmd/pulumi-resource-foo
if [[ "Linux" != "Darwin" ]]; then \
sed -i 's,<http://github.com/pulumi/pulumi-xyz,github.com/pulumi/pulumi-foo,g|github.com/pulumi/pulumi-xyz,github.com/pulumi/pulumi-foo,g>' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i 's/[x]yz/foo/g' {} \; &> /dev/null; \
fi
/bin/sh: 1: [[: not found
# In MacOS the -i parameter needs an empty string to execute in place.
if [[ "Linux" == "Darwin" ]]; then \
sed -i '' 's,<http://github.com/pulumi/pulumi-xyz,github.com/pulumi/pulumi-foo,g|github.com/pulumi/pulumi-xyz,github.com/pulumi/pulumi-foo,g>' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i '' 's/[x]yz/foo/g' {} \; &> /dev/null; \
fi
/bin/sh: 1: [[: not found
to re-produce, follow the readme:
git clone <https://github.com/pulumi/pulumi-tf-provider-boilerplate> pulumi-xyz
cd pulumi-xyz
make prepare NAME=foo REPOSITORY=<http://github.com/pulumi/pulumi-foo|github.com/pulumi/pulumi-foo>
os: Ubuntu 20.04.2 LTS
high-cartoon-83388
07/08/2021, 11:47 PMpulumi up
pulumi destroy
or pulumi preview
?fast-advantage-98237
07/09/2021, 12:09 AMproud-pizza-80589
07/09/2021, 8:44 AMbored-dress-18202
07/09/2021, 2:09 PMincalculable-printer-98305
07/09/2021, 7:43 PMsparse-apartment-71989
07/09/2021, 10:41 PMType Name Status Info
+ pulumi:pulumi:Stack acme_iac-dev **creating failed** 1 error; 2 messages
+ ├─ civo:index:Network acme-network created
+ ├─ civo:index:Firewall acme-firewall created
+ ├─ civo:index:FirewallRule rule-2 created
+ └─ civo:index:FirewallRule rule-1 **creating failed** 1 error
Diagnostics:
civo:index:FirewallRule (rule-1):
error: 1 error occurred:
* [ERR] failed to create a new firewall: UnknownError
pulumi:pulumi:Stack (acme_iac-dev):
error: update failed
civo:index:FirewallRule (rule-1):
error: 1 error occurred:
* [ERR] failed to create a new firewall: UnknownError
Resources:
+ 4 created
Duration: 9s
It fails reliably, but I’m just sure why. If I comment out the code for rule-2, rule-1 gets created fine. Same if I comment out the code to create *rule-1*; that is, rule-2 gets created fine.
I feel like I’m missing something fundamental about Pulumi. 😜
I’m open to suggestions. Thanks in advance!