stocky-petabyte-29883
02/23/2022, 8:57 PMcool-glass-63014
02/24/2022, 9:33 AMimport * as cloudflare from "@pulumi/cloudflare";
) to setup some DNS records it fails to "move" some DNS resources as it does not change a DNS record and instead tries to create the new version of it causing a conflict since the same DNS CNAME record named "cname-record" cannot be created, which then causes the whole upgrade to fail.
I've noticed that I first have to comment out (in separate calls of pulumi up
) the DNS record declaration and then introducing it again after the DNS record has been deleted so that it then can be added again with the new value.
Am I alone with this? Is it intended?modern-tent-49484
02/24/2022, 10:18 AMpulumi config get google-native:region
, but I can't do config.require("google-native:region")
?thousands-jordan-32051
02/24/2022, 2:32 PMerror: getting secrets manager: invalid YAML file: could not unmarshal map: yaml: unmarshal errors:
`line 4: cannot unmarshal !!str null
into config.Value`
`at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsyncInner(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, EventLogFile eventLogFile, CancellationToken cancellationToken)`
`at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsync(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)`
`at Pulumi.Automation.Workspace.RunStackCommandAsync(String stackName, IList`1 args, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)`
`at Pulumi.Automation.WorkspaceStack.RunCommandAsync(IList`1 args, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)`
at Pulumi.Automation.WorkspaceStack.RefreshAsync(RefreshOptions options, CancellationToken cancellationToken)
flat-salesclerk-13714
02/24/2022, 3:32 PMdimension
property, but passing in multiple k/v pairs results in only the last value being applied. Code is below:
cw_alarm = aws.cloudwatch.MetricAlarm(f'{instance._name}-disk',
alarm_description=f"This metric monitors ec2 disk utilization",
comparison_operator="GreaterThanOrEqualToThreshold",
evaluation_periods=1,
insufficient_data_actions=[],
dimensions= { 'Name':'InstanceId', 'Value':instance.id,
'Name':'Filesystem', 'Value':'/dev/root',
'Name':'MountPath', 'Value':'/',
},
metric_name="DiskSpaceUtilization",
namespace="AWS/EC2",
period=300,
statistic="Minimum",
threshold=80,
alarm_actions=[ alarm_action_arn ])
modern-tent-49484
02/24/2022, 3:39 PMstocky-petabyte-29883
02/24/2022, 3:59 PMsome-continent-1577
02/24/2022, 4:51 PMbored-table-20691
02/24/2022, 8:56 PMtls
, random
, etc) depend on quite a bit of Pulumi specific things (e.g. pulumictl
) and it’s not clear if it is the right place to start.
Ideally the repo should also take care of things like building the SDK binaries, etcworried-oxygen-57301
02/24/2022, 10:37 PMerror: resource complete event returned an error: failed to save snapshot: [403] The provided update token has expired.
late-energy-66663
02/25/2022, 12:57 AMeager-jordan-39489
02/25/2022, 1:42 AMonObjectCreated
in Python? I couldn't find it..fancy-spoon-46046
02/25/2022, 2:12 PMastonishing-beach-12529
02/25/2022, 3:55 PMsteep-beach-52652
02/25/2022, 4:15 PMrapid-raincoat-36492
02/25/2022, 4:19 PMlittle-library-54601
02/25/2022, 4:32 PMnew AzureNative.Web.Inputs.HostNameSslStateArgs
{
HostType = "Standard",
Name = "<http://my-app-service.azurewebsites.net|my-app-service.azurewebsites.net>",
SslState = "Disabled",
},
when it should be:
new AzureNative.Web.Inputs.HostNameSslStateArgs
{
HostType = HostType.Standard,
Name = "<http://my-app-service.azurewebsites.net|my-app-service.azurewebsites.net>",
SslState = SslState.Disabled,
},
As it stands, the generated code won't compile. If there's a better place to report this (again, assuming it hasn't been), lmk.melodic-car-16900
02/25/2022, 4:46 PMpulumi:pulumi:Stack (mast-snowflake-non-pro):
error: preview failed
snowflake:index:RoleGrants (snowflake_user_reader_role_grant):
error: Preview failed: refreshing urn:pulumi:non-pro::mast-snowflake::snowflake:index/roleGrants:RoleGrants::snowflake_user_reader_role_grant: 1 error occurred:
* 5 or 6 fields allowed
melodic-car-16900
02/25/2022, 4:46 PMmelodic-car-16900
02/25/2022, 4:47 PMmelodic-car-16900
02/25/2022, 4:47 PMnew snowflake.RoleGrants('snowflake_user_reader_role_grant', {
roleName: readRole.name,
roles: ['SYSADMIN'],
users: [readUser.name],
});
melodic-car-16900
02/25/2022, 4:48 PM/**
* Input properties used for looking up and filtering RoleGrants resources.
*/
export interface RoleGrantsState {
/**
* The name of the role we are granting.
*/
roleName?: pulumi.Input<string>;
/**
* Grants role to this specified role.
*/
roles?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Grants role to this specified user.
*/
users?: pulumi.Input<pulumi.Input<string>[]>;
}
melodic-car-16900
02/25/2022, 4:48 PMcreamy-carpet-23943
02/25/2022, 9:35 PMthousands-hairdresser-72380
02/25/2022, 9:42 PMaws:region
configuration to configure my stacks.
A stack was deployed to us-east-1
then the aws:region
was swapped to us-west-2
and deployed.
It got half way through and then failed.
It now fails to delete any resources from either region and returns errors like:
error reading ELBv2 Target Group [omitted] is not a valid target group ARN
and
InvalidParameterException: Invalid Region in ARN
What’s the best way to reconcile this without deleting all the resources manually then force deleting the stack?
Thank you!fancy-vase-72193
02/26/2022, 5:31 AMfs/promises
bulky-bird-93072
02/26/2022, 8:57 AMbulky-bird-93072
02/26/2022, 3:06 PMred-scooter-62880
02/26/2022, 3:22 PMgentle-account-13294
02/26/2022, 6:45 PMpulumi.Outputs
question tied to resource_name
:
I would like to have a resource_name
by dynamic and tied to a function
that is taking a Output
as parameter. e.g.
def some_func(database_name: Output[str], schema: Output[str]) :
snowflake.SchemaGrant(f"database_{database_name}_schema_{schema}_privilege_{one_privilege}_future_false_{role_hash}",
database_name=database_name,
privilege=one_privilege,
roles=roles,
schema_name=schema,
with_grant_option=False)
In this specific case I’m trying to write a generic function that will creates schema’s using the Snowflake provider but in principle this question should be applicable to any resource.
It seems like the resource_name
should be a str
and using the Output
just causes the resource name to have something like:
<pulumi.output.Output object at 0x111f482d0>_schema_<pulumi.output.Output object at 0x111f51290>_privilege_CREATE
instead of the actual name of the Output. Note that the Output is already known in this case. I also tried using apply
For e.g.
all_outputs = pulumi.Output.all(database_name, schema)
all_outputs.apply(inner). # where inner function just encapsulates the real work
the only way i could think of is using two apply
one inside the other for the two outputs to resolve this.
I’m hoping there is a better way or I’m missing something in my understanding of using Outputs
??