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 !]😒ad-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 PMplain-eve-99442
08/24/2022, 12:42 PMplain-eve-99442
08/24/2022, 12:42 PMswift-apple-26877
08/24/2022, 2:14 PMfew-plastic-88435
08/24/2022, 2:42 PMflaky-arm-38472
08/24/2022, 3:44 PMpackage main
import (
"fmt"
"<http://github.com/pulumi/pulumi-aws/sdk/v5/go/aws/rds|github.com/pulumi/pulumi-aws/sdk/v5/go/aws/rds>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewCluster(ctx, "default", &rds.ClusterArgs{
ClusterIdentifier: pulumi.String("aurora-cluster-demo"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("us-west-2a"),
pulumi.String("us-west-2b"),
pulumi.String("us-west-2c"),
},
DatabaseName: pulumi.String("mydb"),
MasterUsername: pulumi.String("foo"),
MasterPassword: pulumi.String("barbut8chars"),
})
if err != nil {
return err
}
var clusterInstances []*rds.ClusterInstance
for key0, val0 := range 2 {
__res, err := rds.NewClusterInstance(ctx, fmt.Sprintf("clusterInstances-%v", key0), &rds.ClusterInstanceArgs{
Identifier: pulumi.String(fmt.Sprintf("aurora-cluster-demo-%v", val0)),
ClusterIdentifier: _default.ID(),
InstanceClass: pulumi.String("db.r4.large"),
Engine: _default.Engine,
EngineVersion: _default.EngineVersion,
})
if err != nil {
return err
}
clusterInstances = append(clusterInstances, __res)
}
return nil
})
}
Specifically the ranging when creating the clusterInstances (for key0, val0 := range 2)
. Range does not work like in Python. In go that range 2 will throw an error becasue first is an untyped int and second thats not how range works.echoing-oil-42947
08/24/2022, 7:52 PMhttp://share.asdn.dev/r/fk4gjU.png▾
echoing-oil-42947
08/24/2022, 7:52 PMhttp://share.asdn.dev/r/fk4gjU.png▾