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!average-television-1214
07/11/2021, 1:52 AMprivateVpcConnection, err := servicenetworking.NewConnection(ctx, "privateVpcConnection", &servicenetworking.ConnectionArgs{
Network: containerNetwork.ID(),
Service: pulumi.String("<http://servicenetworking.googleapis.com|servicenetworking.googleapis.com>"),
ReservedPeeringRanges: pulumi.StringArray{
dbPrivateRange.Name,
},
})
if err != nil {
return err
}
Diagnostics:
pulumi:pulumi:Stack (avsatum-dev):
panic: fatal: An assertion has failed
goroutine 103 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)>
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)>
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/common/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x1df8800|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x1df8800>, 0xc0005c2280, 0x208b8c0, 0x1c8e7a0, 0xc0004f7801, 0x109d052, 0x1cdba00, 0x1, 0xc0004f78d8, 0x109b885, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/pulumi/rpc.go:272 +0x36f0
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x1e9a5e0|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x1e9a5e0>, 0xc00018c540, 0x208b8c0, 0x1c8e7a0, 0x1e9a501, 0xc00018c540, 0x1cdba00, 0xc0000c5140, 0x94, 0x1, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/pulumi/rpc.go:170 +0x73
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x1d39b40|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x1d39b40>, 0xc000496630, 0x208b8c0, 0x1cb6f60, 0xc00060ce01, 0x173572f, 0x1d8a940, 0xc000548270, 0x208b8c0, 0x1bd41c0, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/pulumi/rpc.go:358 +0x100a
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x1d39b40|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x1d39b40>, 0xc000496630, 0x208b8c0, 0x1c8e7a0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/pulumi/rpc.go:170 +0x73
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResourceOutputs.func1(0xc0003a6640|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResourceOutputs.func1(0xc0003a6640>, 0x2084d68, 0xc0000aa410, 0xc000496630)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/pulumi/context.go:1169 +0x13c
created by <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResourceOutputs|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResourceOutputs>
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.6.1/go/pulumi/context.go:1156 +0x96
exit status 2
error: an unhandled error occurred: program exited with non-zero exit code: 1
magnificent-needle-88854
07/11/2021, 8:17 AMfull-island-88669
07/12/2021, 7:50 AMaws_secret_access_key: output<string>
full-island-88669
07/12/2021, 10:29 AMgifted-island-55702
07/12/2021, 2:33 PMwitty-dentist-91954
07/12/2021, 3:05 PMerror sending request: Get "<https://www.googleapis.com/compute/v1/projects/my-project/global/addresses/planner-global-ip?alt=json>": stream error: stream ID 1; INTERNAL_ERROR: "<https://www.googleapis.com/compute/v1/projects/my-project/global/addresses/planner-global-ip>" map[]
, effectivly blocking me from updating any other resource.
a) Is there a way to ignore a resource during pulumi up
?
b) How could I dig more into this?witty-dentist-91954
07/12/2021, 3:05 PMerror sending request: Get "<https://www.googleapis.com/compute/v1/projects/my-project/global/addresses/planner-global-ip?alt=json>": stream error: stream ID 1; INTERNAL_ERROR: "<https://www.googleapis.com/compute/v1/projects/my-project/global/addresses/planner-global-ip>" map[]
, effectivly blocking me from updating any other resource.
a) Is there a way to ignore a resource during pulumi up
?
b) How could I dig more into this?pulumi state delete
.
I don't want to change the external IP, so this workaround is ok for me.