damp-honey-93158
08/19/2022, 6:25 AMdamp-honey-93158
08/19/2022, 6:43 AMgentle-market-22852
08/19/2022, 8:37 AMgentle-market-22852
08/19/2022, 10:56 AMgentle-market-22852
08/19/2022, 10:56 AMripe-greece-78043
08/19/2022, 3:07 PMlate-lizard-19909
08/19/2022, 9:37 PMuserIdentity = '/subscriptions/555-555-555-555-555-555/resourcegroups/fake/providers/Microsoft.ManagedIdentity/userAssignedIdentities/Fakeidentity';
automationIdentity = '/subscriptions/555-555-555-555-555-555/resourcegroups/fake/providers/Microsoft.ManagedIdentity/userAssignedIdentities/Fakeidentity2';
new azure_native.compute.VirtualMachineScaleSet(vmssname,{
identity: {
type: "UserAssigned",
userAssignedIdentities:{ userIdentity: {},
automationIdentity: {},
}},
late-lizard-19909
08/19/2022, 9:38 PMHere's the error I get:
azure-native:compute:VirtualMachineScaleSet (vmssname):
error: Code="LinkedInvalidPropertyId" Message="Property id 'automationIdentity' at path '' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.
late-lizard-19909
08/19/2022, 9:52 PMNevermind solved it, I had to write the literal with this syntax:
userAssignedIdentities:{ [`${automationIdentity}`]: {},
[`${envIdentity}`]: {},
agreeable-stone-77159
08/20/2022, 8:06 AMproud-tomato-75820
08/20/2022, 11:15 AMwet-fall-57893
08/20/2022, 12:35 PMstocky-petabyte-29883
08/20/2022, 2:32 PMvictorious-dusk-75271
08/20/2022, 2:46 PMprimary: {
all my primary stuff
}
secondary: {
all my secondary stuff
}
instead of prefixing all exports with primary
and secondary
?
and I am not really sure if i can access them with stack.Output('primary.something')
victorious-dusk-75271
08/21/2022, 12:07 PMerror: Error: Cannot call 'getOutputValue' if the referenced stack output is a secret. Use 'getOutput' instead.
abundant-megabyte-13431
08/22/2022, 2:03 AMgentle-market-22852
08/22/2022, 2:57 AMalert-plumber-27645
08/22/2022, 5:34 AMhttps://media.giphy.com/media/XQvhpuryrPGnK/giphy.gif▾
alert-plumber-27645
08/22/2022, 5:34 AMgentle-market-22852
08/22/2022, 6:10 AMgentle-market-22852
08/22/2022, 12:29 PMgentle-market-22852
08/22/2022, 12:53 PMgentle-market-22852
08/22/2022, 1:06 PMmodern-art-46499
08/22/2022, 3:16 PMmodern-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?microscopic-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?