brave-planet-10645
06/30/2021, 3:17 AMincalculable-action-69391
06/30/2021, 3:35 AMincalculable-action-69391
06/30/2021, 3:37 AMflaky-school-82490
07/01/2021, 7:49 AMazure-native:resources:ResourceGroup (resourceGroup):
error: building auth config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'
auth method - instructions for which can be found here:
Alternatively you can authenticate using the Azure CLI by using a User Account.
azure/login was successful.
Where are the "separate 'Authenticate using a Service Principal' auth method - instructions"?
Is there a way or a workaround to use pulumi with azure authenticated using a service principal?crooked-wolf-21506
07/01/2021, 2:54 PMstack = new plulumi.StackReference(...);
const resource1 = {
arn: stack.getOutput("resource1Arn"),
name: stack.getOutpu("resource1Name"),
...
}
...
witty-dentist-91954
07/01/2021, 4:21 PMastonishing-dinner-89046
07/02/2021, 4:54 AMmany-salesmen-89069
07/02/2021, 9:31 AMPulumi.yaml
file and I wish to create multiple different stacks from this, all using the same default AWS region.
I’ve tried to use the template
option in Pulumi.yaml
as below, but it had no effect (specifically, pulumi stack init
succeeded, but then pulumi up
failed due to missing AWS region config):
template:
config:
aws:region:
default: eu-west-1
magnificent-area-66739
07/02/2021, 11:39 AMambitious-article-39970
07/02/2021, 1:29 PMsome-twilight-56575
07/03/2021, 2:11 AMbrash-waiter-28842
07/03/2021, 6:06 AMnet, err := compute.NewNetwork(ctx, infraName, networkConf)
if err != nil {
return err
}
ctx.Export("vpcName", net.Name)
Here’s the output of it getting created:
Updating (mars-vpc):
+ pulumi:pulumi:Stack gcp-mars-vpc creating
+ gcp:compute:Network mars-vpc creating
+ gcp:compute:Network mars-vpc created
+ pulumi:pulumi:Stack gcp-mars-vpc created
Outputs:
vpcName: "mars-vpc"
Resources:
+ 2 created
For GKE, I am trying to get the `vpcName`:
vpcStack, err := pulumi.NewStackReference(ctx, vpcStackName, nil)
if err != nil {
panic(err)
}
vpcName := vpcStack.GetOutput(pulumi.String("vpcName"))
gkeConf := &container.ClusterArgs{
Description: pulumi.StringPtr(fmt.Sprintf("GKE created for %s-krate", strings.Split(stack, "-")[0])),
Location: pulumi.StringPtr("asia-southeast2"),
Name: pulumi.StringPtr(infraName),
Network: vpcName.ApplyT(func(v string) string {
return v
}).(pulumi.StringOutput),
}
But i get this error:
stderr: error: an unhandled error occurred: go inline source runtime error, an unhandled error occurred:: applier must have 1 input parameter assignable from interface {}
what am i missing? any help would be appreciated…bored-table-20691
07/03/2021, 6:10 AMvpcName
does not implement string
, and so your input parameter needs to b e func(v interface{}) string { … }
bored-table-20691
07/03/2021, 6:10 AMfunc(v interface{}) string {
vStr := v.(string)
return vStr
}
bored-table-20691
07/03/2021, 6:10 AMv
is.brash-waiter-28842
07/03/2021, 6:12 AMNetwork: vpcName.ApplyT(func(v interface{}) string {
return v.(string)
}).(pulumi.StringOutput),
+Previewing update (mars-gke):
+ pulumi:pulumi:Stack: (create)
[urn=urn:pulumi:mars-gke::gcp::pulumi:pulumi:Stack::gcp-mars-gke]
> pulumi:pulumi:StackReference: (read)
[urn=urn:pulumi:mars-gke::gcp::pulumi:pulumi:StackReference::mars-vpc]
name: "mars-vpc"
+ gcp:container/cluster:Cluster: (create)
[urn=urn:pulumi:mars-gke::gcp::gcp:container/cluster:Cluster::mars-gke]
description : "GKE created for mars-krate"
enableKubernetesAlpha: false
enableL4IlbSubsetting: false
enableLegacyAbac : false
enableTpu : false
location : "asia-southeast2"
name : "mars-gke"
network : "mars-vpc"
Resources:
+ 2 to create
many thanks @bored-table-20691jolly-terabyte-28195
07/03/2021, 6:17 AMable-raincoat-50360
07/03/2021, 9:11 AMable-raincoat-50360
07/03/2021, 9:12 AMable-raincoat-50360
07/03/2021, 9:13 AMmagnificent-area-66739
07/06/2021, 8:52 AMmany-yak-61188
07/06/2021, 11:44 AMenv:
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
and the pulumi preview step is as below
- name: Run pulumi preview
uses: pulumi/actions@v3
with:
command: preview
stack-name: dev
My github action fails with the error
Configured range: ^3
Matched version: v3.6.0
Install destination is /home/runner/.pulumi
Successfully deleted pre-existing /home/runner/.pulumi/bin
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/.pulumi -f /home/runner/work/_temp/7870f4e2-f331-4e31-b9d4-c532297696f3
Error: code: 255
stdout:
stderr: error: no stack named 'dev' found
err?:
many-yak-61188
07/06/2021, 11:48 AMmany-yak-61188
07/06/2021, 1:20 PMicy-football-94152
07/06/2021, 3:58 PMhelpful-knife-18557
07/06/2021, 4:24 PMadventurous-camera-87788
07/06/2021, 10:50 PMconst storageAccount = new azure_native.storage.StorageAccount(storageAccountName, {
accountName: storageAccountName,
resourceGroupName: resourceGroup.name,
location: resourceGroup.location,
sku: {
name: 'Standard_GRS'
},
kind: 'StorageV2'
});
I am trying to figure out how to get the primary connection string from this instance. Does anyone know how to do that? I noticed standard storage account using the Azure library (not azure native) has a property primaryConnectionString
that can be used as an output. Does something similar exist for the azure-native version of the storage account? Any help is appreciated.red-tiger-64221
07/07/2021, 4:35 PMsparse-apartment-71989
07/07/2021, 6:33 PMpulumi config set civo:token XXXXXXXXXXXXXX --secret
I see an encrypted value of the token is written out into a yaml file in the project. My question is, is this safe to commit into SCM or should it be ignored; i.e. excluded via .gitignore?
Thanks in advance!important-sandwich-62391
07/07/2021, 9:01 PM