nutritious-church-27230
06/09/2021, 4:56 PMorange-musician-98025
06/09/2021, 8:58 PMnutritious-church-27230
06/10/2021, 4:23 PMlet pubKey: string = fs.readFileSync(path.join(__dirname,'/../pulumi/id_rsa.pub')).toString()
works though, able to read file within its pulumi directory.
let pubKey: string = fs.readFileSync(path.join(__dirname,'/../secret/id_rsa.pub')).toString()
doesn't work. Unable to find file outside pulumi directory.adorable-noon-15528
06/16/2021, 10:22 AMhappy-angle-19851
06/16/2021, 10:26 AMgreat-sunset-355
06/17/2021, 10:20 AMflaky-school-82490
06/17/2021, 4:54 PMgreat-sunset-355
06/18/2021, 8:59 AMpulumi
and
1. ZSH
working, I use oh-my-zsh
and followed the docs but no luck._
-> _pulumi
2. lazy_import
which is probably a source of problemscareful-van-85195
06/18/2021, 4:34 PMfresh-waitress-69295
06/19/2021, 10:54 AMlittle-kangaroo-11618
06/21/2021, 8:18 PMdazzling-knife-70091
06/22/2021, 7:12 AMdazzling-knife-70091
06/22/2021, 7:18 AMnarrow-battery-21100
06/23/2021, 7:54 AMresource_group = pulumi_azure_native.resources.ResourceGroup(
'xyzzy',
resource_group_name='xyzzy'
)
export('debug1', resource_group.resource_group_name)
I'm baffled, must be some really silly mistake but I just don't see it ???
The above code does NOT produce the "debug1" output.
I would expect it to produce Output "debug1" with value "xyzzy" because:
The docs state "ResourceGroup resource accepts the following input properties: ..., resource_group_name, ..."
and "All input properties are implicitly available as output properties."
https://www.pulumi.com/docs/reference/pkg/azure-native/resources/resourcegroup/agreeable-tomato-43927
06/23/2021, 7:55 AMimportant-sandwich-62391
06/23/2021, 10:56 PMicy-football-94152
06/24/2021, 11:53 AMicy-football-94152
06/25/2021, 9:16 AMalert-cartoon-12389
06/25/2021, 10:05 PMbright-sandwich-93783
06/26/2021, 4:06 AMId
output property. However, when making a vanilla vpc, err := ec2.NewVpc(ctx, "staging-vpc", &ec2.VpcArgs{})
call, and trying to access the Id
output property of vpc
, I am getting a vpc.Id undefined (type *ec2.Vpc has no field or method Id)
. How can I access the Id property of the newly created VPC object, and how should I interpret the documentation going forward?straight-intern-54129
06/26/2021, 4:14 AMgreat-sunset-355
06/26/2021, 10:09 AMstraight-magician-37467
06/26/2021, 9:53 PMProperty 'status' does not exist on type 'Service'. Did you mean 'statuses'?
https://github.com/pulumi/examples/blob/master/gcp-ts-docker-gcr-cloudrun/cloud-run-deploy/index.ts#L61
I tried substituting rubyService.status.url
with rubyService.statuses[0].url
but Google was unhappy with the resulting URL. Any idea how I might fix this?quiet-architect-74241
06/28/2021, 11:28 AMUserAssignedIdentity identity = new UserAssignedIdentity($"{name}ManagedIdentity",
new UserAssignedIdentityArgs
{
ResourceGroupName = resourceGroup.Name,
ResourceName = $"{name}ManagedIdentity",
});
new WebApp(name, new WebAppArgs
{
Kind = "app,linux",
ResourceGroupName = resourceGroup.Name,
ServerFarmId = appServicePlan.Id,
Reserved = true,
Identity = new Pulumi.AzureNative.Web.Inputs.ManagedServiceIdentityArgs
{
Type = Pulumi.AzureNative.Web.ManagedServiceIdentityType.UserAssigned,
UserAssignedIdentities =
{
{ identity.Id , "resource" }
}
},
...
My problem is in this part:
UserAssignedIdentities =
{
{ identity.Id , "resource" }
}
[Documentation](https://www.pulumi.com/docs/reference/pkg/azure-native/web/webapp/#managedserviceidentity) of userAssignedIdentities
states:
The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: ‘/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
So the key needs to be the Id of the identity you want to use.
Given that UserAssignedIdentities
is of type InputMap<object>
, which consists of a string
and an object
as a key-value pair. Now, I can't use identity.Id
since that is an Input<string>
rather than a string. And a string is expected as the first type of the collection initializer of the InputMap<object>
.
I must be missing something. How do I pass the Id of a newly created User Assigned Identity to the WebApp?flaky-school-82490
06/28/2021, 2:28 PM// Properties normally created azure-side
if (args.Type == "azure-native:storage:StorageAccount")
{
// primary keys
outputs.Add("listStorageAccountKeys:0:keyName", "key1");
outputs.Add("listStorageAccountKeys:0:permissions", "FULL");
outputs.Add("listStorageAccountKeys:0:value", "SomeMockValue12345==");
}
@billowy-army-68599 Any thoughts on the correct output element formatting here?icy-football-94152
06/29/2021, 8:41 AMbright-truck-37455
06/29/2021, 11:00 AMproject
and gcp:project
- both failincalculable-helicopter-18567
06/29/2021, 4:19 PMincalculable-action-69391
06/30/2021, 2:41 AMincalculable-action-69391
06/30/2021, 2:41 AM