great-sunset-355
07/23/2021, 9:45 AMpulumi config cp --stack staging --dest <owner>/dest-proj/staging
I get error: [400] Message authentication failed
mysterious-australia-14256
07/23/2021, 3:51 PMlittle-whale-73288
07/23/2021, 4:30 PMminiature-advantage-31279
07/24/2021, 4:35 AM[ERR]: Error building changeset: InvalidChangeBatch: [Tried to create resource record set [name='***', type='CNAME'] but it already exists]
even though I applied the options for:
{ deleteBeforeReplace: true },
average-television-1214
07/25/2021, 11:40 PMaverage-television-1214
07/25/2021, 11:43 PMpanic: fatal: An assertion has failed
goroutine 201 [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.8.0/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.8.0/go/common/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x288d040|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x288d040>, 0xc0000e0000, 0x2d2a180, 0x25fdda0, 0xc0000dd801, 0x109e5f2, 0x265f0e0, 0x1, 0xc0000dd898, 0x109ce25, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.8.0/go/pulumi/rpc.go:280 +0x38c5
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x29b50e0|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x29b50e0>, 0xc000288850, 0x2d2a180, 0x25fdda0, 0x29b5001, 0xc000288850, 0x265f0e0, 0xc0000120b0, 0x94, 0x0, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.8.0/go/pulumi/rpc.go:171 +0x73
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x26d12a0|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInputAndDetermineSecret(0x26d12a0>, 0xc000188450, 0x2d2a180, 0x2632e00, 0xc0001eee01, 0x1785baf, 0x273ee80, 0xc000592350, 0x2d2a180, 0x2454880, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.8.0/go/pulumi/rpc.go:374 +0x100a
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x26d12a0|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput(0x26d12a0>, 0xc000188450, 0x2d2a180, 0x25fdda0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.8.0/go/pulumi/rpc.go:171 +0x73
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResourceOutputs.func1(0xc00026e000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResourceOutputs.func1(0xc00026e000>, 0x2d24678, 0xc00023c1c0, 0xc000188450)
/Users/alexlokshin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.8.0/go/pulumi/context.go:1400 +0x13d
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.8.0/go/pulumi/context.go:1387 +0x96
exit status 2
error: an unhandled error occurred: program exited with non-zero exit code: 1
breezy-butcher-78604
07/26/2021, 5:53 AMpulumi up
quiet-architect-74241
07/26/2021, 8:36 AMnew AzureNative.Compute.VirtualMachineExtension($"{vmName}-VMExtensions", new AzureNative.Compute.VirtualMachineExtensionArgs()
{
VmName = vmName,
ResourceGroupName = resourceGroup.Name,
AutoUpgradeMinorVersion = true,
Publisher = "Microsoft.Powershell",
Type = "DSC",
TypeHandlerVersion = "2.73",
Settings = Output.Tuple(hostPool.Name, hostPool.RegistrationInfo).Apply((tuple) =>
{
return JsonConvert.SerializeObject(new
{
modulesUrl = "<https://storageblobname.blob.core.windows.net/galleryartifacts/Configuration_5-5-2021.zip>",
configurationFunction = "Configuration.ps1\\AddSessionHost",
properties = new
{
hostPoolName = tuple.Item1,
registrationInfoToken = tuple.Item2.Token,
aadJoin = false,
}
});
})
});
which results in this error:
error: azure-native:compute:VirtualMachineExtension resource 'somename-vm-01-VMExtensions' has a problem: 'settings' should be of type '' but got a string
although the documentation says about the settings property:
Json formatted public settings for the extension.
I verified that the string that I am using for the settings property has the exact syntax as when I export the VirtualMachineExtension from the Azure Portal.
Looking documentation or an example on how to use the VirtualMachineExtension for DSC extension. Can't find an example anywhere using my Google Fu.quaint-garage-36651
07/26/2021, 11:14 AMproud-dusk-33872
07/26/2021, 12:15 PMpulumi stack output
a known issue - and is there any way to work around it? It takes about 20 seconds to run for me and we have ~25 output variablescurved-ghost-20494
07/26/2021, 4:50 PMconst instance = new CustomResource('foo');
export.bar = instance.bar;
export.baz = instance.baz;
export.bam = instance.bam;
It’s kind of irritating to do this for lots of variables, especially if I then go and create more instances.curved-ghost-20494
07/26/2021, 8:12 PMdependsOn
array supposed to work with a ComponentResource
? I’ve created a wrapper around a tonne of project boilerplate, but I need an SSL certificate to be generated first.
let cert = new aws.acm.Certificate("cert", { domainName: '<http://example.com|example.com>' ]);
const project = new Project('foo', { dependsOn: [cert] });
Inside the Project
there’s a call to getCertificate('<http://example.com|example.com>')
and it fails as soon as I Run pulumi up
, rather than waiting for the acm Certificate to complete.
I’ve had dependsOn
working in GCP without CustomResources no problem. Am I approaching this the right way, should I be doing something else perhaps?
J xworried-city-86458
07/26/2021, 11:19 PMgreat-sunset-355
07/27/2021, 5:13 AMpulumi.export("some","value")
? Is this a bug?
I exported the value and now I'd like to remove it so I removed it from the code and pulumi up -y
Diff showed
Outputs:
- some: "value"
But then pulumi stack
still shows
Current stack outputs (1):
OUTPUT VALUE
some value
Pulumi then shows that it's removing the output until:
another value is added to the Outputs
pulumi.export('another', 'value')
Then pulumi up -y
Outputs:
+ another: "value"
- some : "value"
Then: pulumi stack
Current stack outputs (1):
OUTPUT VALUE
another value
Note: As long as there is at least one output, removing it works as expected. The described scenario above happens if there is only 1 output in the stack to be removed.kind-manchester-13281
07/27/2021, 7:17 AM2021-07-26 14:21:04,109 integration-test [ip-172-31-30-43] 62c7f849 ERROR: got an exception while creating environment:
code: 255
stdout: Updating (test):
+ pulumi:pulumi:Stack test-test creating
aws:ec2:SecurityGroup uat_automation_ubuntu:18.04_0_docker_installed_sg error: 1 error occurred:
+ pulumi:pulumi:Stack test-test created
aws:ec2:SecurityGroup uat_automation_ubuntu:18.04_0_docker_installed_sg **failed** 1 error
Diagnostics:
aws:ec2:SecurityGroup (uat_automation_ubuntu:18.04_0_docker_installed_sg):
error: 1 error occurred:
* error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Please see <https://registry.terraform.io/providers/hashicorp/aws>
for more information about providing credentials.
Error: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
Resources:
This is a ci machine that already has a role assumed, what should I do?
Thanks!calm-quill-21760
07/27/2021, 6:20 PMcluster = eks.Cluster(
cluster_name,
name=cluster_name,
# Omitting the node_ami_id succeeds. Adding it in causes nodes to build but not be attached.
node_ami_id="ami-092263943bcda23f5",
node_root_volume_size=50,
desired_capacity=2,
min_size=1,
max_size=2,
encrypt_root_block_device=True,
vpc_id=myVpc.id,
cluster_security_group=my_security_group,
endpoint_public_access=True,
endpoint_private_access=True,
public_subnet_ids=public_subnet_ids,
create_oidc_provider=True,
)
faint-dog-16036
07/27/2021, 7:09 PMrough-energy-67721
07/27/2021, 7:43 PMkind-cpu-30872
07/28/2021, 5:12 AMboundless-cartoon-44055
07/28/2021, 7:44 AMlittle-van-8457
07/28/2021, 8:13 AMUpdating (test-stack):
pulumi:pulumi:Stack test-project-test-stack running
~ alicloud:fc:Service qianfeng-pulumi-component-test updating [diff: ~description]
~ alicloud:fc:Service qianfeng-pulumi-component-test updated [diff: ~description]
alicloud:fc:Function my-function-1
~ alicloud:fc:Service qianfeng-pulumi-component-test **updating failed** [diff: ~description]; error: Cannot delete parent resource 'urn:pulumi:test-stack::test-project::alicloud:fc/service:Service::qianfeng-pulumi-component-test' without also deleting child 'urn:pulumi:test-stack::test-project::alicloud:fc/service:Service$alicloud:fc/function:Function::my-function-1'.
pulumi:pulumi:Stack test-project-test-stack
Diagnostics:
alicloud:fc:Service (qianfeng-pulumi-component-test):
error: Cannot delete parent resource 'urn:pulumi:test-stack::test-project::alicloud:fc/service:Service::qianfeng-pulumi-component-test' without also deleting child 'urn:pulumi:test-stack::test-project::alicloud:fc/service:Service$alicloud:fc/function:Function::my-function-1'.
Outputs:
functionUrn: "urn:pulumi:test-stack::test-project::alicloud:fc/service:Service$alicloud:fc/function:Function::my-function-1"
serviceUrn : "urn:pulumi:test-stack::test-project::alicloud:fc/service:Service::qianfeng-pulumi-component-test"
Resources:
~ 1 updated
2 unchanged
many-salesmen-89069
07/28/2021, 8:36 AMgreat-sunset-355
07/28/2021, 1:25 PMopts
from parent
into child
- but parent_opts
overridden child_opts
but I wanted it the other way around where I can override parent_opts
with child_opts
during the merge.
For that, I created a sample code: https://gist.github.com/1oglop1/dcb258471cd33f572bedf67c63b7fe00
with 2 merging methods:
- merge_opts_a
- child_opts.merge(parent_opts)
- current & wrong
- merge_opts_b
- ResourceOptions.merge(parent_opts, child_opts)
- expected & correct
When I change from merge_opts_a
to merge_opts_b
and run pulumi preview
it says that I'll delete some resources which I need to prevent.
How can I correctly apply aliases to prevent the deletion of the resources?
Assume all components are supposed to be reusable in another project that does not suffer the current problem.
How is this going to behave when I deploy a different stack with Aliases?
Can the same alias be assigned to multiple components/resources?
Is it possible to pass the alias from the parent without modifying the children's code?
Thank you
Attached pictures: left - current & wrong, right - expected & correct
After trial and error, I managed to solve it by editing the AppComponent
merged_opts = pulumi.ResourceOptions.merge(
parent_opts,
pulumi.ResourceOptions(
parent=self,
aliases=[
Alias(parent=self),
Alias(parent=pulumi.ROOT_STACK_RESOURCE)
]
),
)
little-whale-73288
07/28/2021, 1:39 PMpulumi refresh --diff --non-interactive
complains with:
error: --yes must be passed in to proceed when running in non-interactive mode
I'd rather pass a --no
if it was availablecool-egg-852
07/28/2021, 2:56 PMDeployment
which references a Secret
for imagePullSecrets
, then anything that references Deployment
, such as a Service
, has output marked as a secret for that particular property (think labels, etc.), rather than showing them in plain text as the property is not actually a secret.bland-lamp-16797
07/28/2021, 3:00 PMtime pulumi --logtostderr -v=7 stack ls
takes around 4 minutes if the GCP bucket is not near the client.
Is there any way for me to detect what exactly is causing this?
The output of -v=7
do not give alotgreat-sunset-355
07/28/2021, 3:42 PMstackReference
into pydantic
object?
stack core
import pulumi
import pulumi_aws.route53 as route53
my_zone = route53.Zone(
"my-zone",
comment="",
force_destroy=False,
name="<http://my-zone.domain.com|my-zone.domain.com>",
opts=pulumi.ResourceOptions(protect=True),
)
pulumi.export("my_zone", my_zone)
stack app/dev
import pulumi
from pydantic import BaseModel
class MyZone(BaseModel):
zone_id: str
force_destroy: bool
ref_zone = pulumi.StackReference('jan/proj/core')
my_zone_pd = MyZone(**ref_zone.require_output('my_zone')) # this is a problem
is there any trick on how to assign variables during Output.apply()
?chilly-lamp-75954
07/28/2021, 9:08 PMignoreChanges
resource option be used to ignore provider changes on resource? I’ve tried to ignore ‘provider’ and ‘~provider’ - that did not work - thought i’ll ask here before I go into rabbit hope of digging it in core sources.proud-dusk-33872
07/28/2021, 9:10 PMproud-dusk-33872
07/28/2021, 9:27 PMparent
of a resource be via a stack reference?
(I want to ignore changes of child resources
X on the parent stack, and have other stacks contribute one or more children)proud-dusk-33872
07/28/2021, 9:27 PMparent
of a resource be via a stack reference?
(I want to ignore changes of child resources
X on the parent stack, and have other stacks contribute one or more children)little-cartoon-10569
07/28/2021, 9:37 PMproud-dusk-33872
07/28/2021, 9:45 PMlittle-cartoon-10569
07/28/2021, 9:49 PMproud-dusk-33872
07/28/2021, 10:17 PM