modern-art-46499
08/22/2022, 3:16 PMworried-helmet-23171
08/22/2022, 4:33 PMerror: Running program '/Users/gm/Desktop/git/pulumi-gcp-test/examples/bucket_test' failed with an unhandled exception:
Error: failed to register new resource test_bucket [xyz:index:GCPBucket]: 2 UNKNOWN: Unexpected <class 'TypeError'>: __init__() got an unexpected keyword argument 'options' t Object.registerResource (/Users/gm/Desktop/git/pulumi-gcp-test/sdk/nodejs/node_modules/@pulumi/runtime/resource.ts:292:27)
My provider code looks like this:
class Provider(provider.Provider):
def __init__(self) -> None:
super().__init__(xyz_provider.__version__, xyz_provider.__schema__)
def construct(
self,
name: str,
resource_type: str,
inputs: Inputs,
options: Optional[ResourceOptions] = None,
) -> ConstructResult:
if resource_type == "xyz:index:GCPBucket":
return _construct_gcp_bucket(name, inputs, options)
raise Exception(f"Unknown resource type {resource_type}")
def _construct_gcp_bucket(
name: str, inputs: Inputs, options: Optional[ResourceOptions] = None
) -> ConstructResult:
gcp_bucket = GCPBucket(name, GCPBucketArgs.from_inputs(inputs), options)
return provider.ConstructResult(
urn=gcp_bucket.urn, state={"bucket": gcp_bucket.bucket})
My test code:
import * as xyz from "@pulumi/xyz";
const gcp_bucket = new xyz.GCPBucket(
"test_bucket",
{
"name": "test_bucket", "location": "northamerica-northeast1" });
Any help is appreciated!icy-controller-6092
08/22/2022, 6:45 PMnew aws.Provider(region, { region })
everything on the class is now an Output
… how can I access the region as a string elsewhere in the code, which was statically defined on creation?
I am trying to do an API gateway multi-region deployment, and need to give each resource a unique name. I want to append the name of the provider to all the resources generated per providerfull-piano-38001
08/22/2022, 7:22 PMpulumi up
. We are attempting to update an elasticsearch domain but get this error.
aws:elasticsearch:Domain (webiny-js):
error: 1 error occurred:
* updating urn:pulumi:prod::api::aws:elasticsearch/domain:Domain::webiny-js: 1 error occurred:
* ResourceNotFoundException: No progress information found
We also see an error in our state file with this message:
"initErrors": [
"updating urn:pulumi:prod::api::aws:elasticsearch/domain:Domain::webiny-js: 1 error occurred:\n\t* ResourceNotFoundException: No progress information found\n\n"
],
However, we can can confirm that the resources exists in our AWS console and in the statefile itself. Is there any guidance on what caused this error/how to resolve? I did see a mention of initErrors in the docs but hoping for a bit more detail. Thank you!witty-barista-69390
08/23/2022, 2:39 AMmicroscopic-cpu-38113
08/23/2022, 4:18 AMInfo
2022-08-23T04:12:56.547025561ZStep #2: error: no resource plugin 'pulumi-resource-datadog' found in the workspace at version v4.10.0 or on your $PATH, install the plugin using `pulumi plugin install resource datadog v4.10.0`
hi all, we have "@pulumi/datadog": "4.10.0" as part of our private node package for which the application is referring. We have this in our package.json.lock file but when we run pulumi up, we see the error above, did I miss anything?gorgeous-country-43026
08/23/2022, 6:03 AMwarning: A new version of Pulumi is available. To upgrade from version '3.37.2' to '3.38.0', visit https://pulumi.com/docs/reference/install/ for manual instructions and release notes.
[16:25.39] ~\code\infra\live [main ≡ +0 ~1 -0 !]
> winget search pulumi
Name Id Version Source
------------------------------------
Pulumi Pulumi.Pulumi 3.37.2 winget
[09:02.04] ~\code\infra\live [main ≡ +0 ~1 -0 !]sad panda when will the new release be pushed to winget?
billowy-yak-63946
08/23/2022, 6:39 AMgreat-sunset-355
08/23/2022, 7:00 AMacoustic-alarm-43219
08/23/2022, 8:27 AMechoing-postman-88590
08/23/2022, 11:12 AMdamp-honey-93158
08/23/2022, 11:25 AMbillowy-yak-63946
08/23/2022, 11:50 AMkind-address-8184
08/23/2022, 12:28 PMpulumi-azure-native
golang sdk, part of it is to deploy the azure Authorization/policySetDefinitions
and Microsoft.Authorization/policyAssignments
all the policies are defined using Pulumi, however during the policy-assignment we are stuck on defining identity object. How will i define a UserAssigned
identity, the authorization.IdentityArgs
only have “Type”!
The ARM template is like below:-
----------
“identity”: {
“type”: “UserAssigned”,
“userAssignedIdentities”: {
“[parameters(‘userAssignedIdentity’)]“: {}
}
}
--------
authorization.NewPolicyAssignment(ctx, "policy-name", &authorization.PolicyAssignmentArgs{
Identity: authorization.IdentityArgs{
Type: idType,
},
PolicyAssignmentName: pulumi.String("policy-name"),
PolicyDefinitionId: pulumi.String("/subscriptions/xxx/providers/Microsoft.Authorization/policySetDefinitions/policy-def-name"),
Scope: pulumi.String("/subscriptions/xxx"),
})
great-pharmacist-55508
08/23/2022, 1:13 PMechoing-oil-42947
08/23/2022, 5:08 PMhttp://share.asdn.dev/r/fk4gjU.png▾
late-lizard-19909
08/23/2022, 7:19 PMsparse-intern-71089
08/23/2022, 7:41 PMboundless-engineer-23836
08/23/2022, 8:21 PM{ annotations: {"annotation/fix": ""}}
it sets it to an empty string as expected. Is there a way to remove that annotation completely?fancy-spoon-7206
08/23/2022, 8:31 PMpulumi up
using the Pulumi binary? I have defined the infrastructure in Go, so do I need Go to be installed on the machine?icy-doctor-13719
08/23/2022, 9:58 PMvictorious-dusk-75271
08/23/2022, 10:07 PMlittle-cartoon-10569
08/23/2022, 10:35 PMsparse-intern-71089
08/24/2022, 12:13 AMfancy-spoon-7206
08/24/2022, 4:18 AMpulumi up
would do the trick. I did not add any code to set the config.
Now with the automation API all I see in the examples is
// set stack configuration specifying the AWS region to deploy
s.SetConfig(ctx, "aws:region", auto.ConfigValue{Value: "us-west-2"})
Is there a way to consume config using a Pulumi.dev.yaml
file? instead of setting one config at a time.
Pulumi.dev.yaml
config:
aws:region: us-east-2
aws:profile: sandbox
aep:config:
bucket:
name: dinesh-test
brief-baker-41837
08/24/2022, 5:22 AMorange-whale-70892
08/24/2022, 9:28 AMaws:skipCredentialsValidation: true
to the pulumi yaml I’m able to deploy. Is this a known issue?gentle-market-22852
08/24/2022, 10:48 AMechoing-dinner-19531
08/24/2022, 11:30 AMplain-eve-99442
08/24/2022, 12:40 PM