freezing-daybreak-42018
06/03/2022, 3:01 PMkind-keyboard-17263
06/03/2022, 3:08 PMgcp.secretmanager.Secret
, and I need the .secret_id
field. I have read that it must be done either by using apply
or lifting
.
So:
existing_secret = gcp.secretmanager.Secret.get(
secret_basic.name.apply(lambda name: name),
secret_basic.secret_id.apply(lambda id: id))
But I keep on having:
TypeError: Expected resource name to be a string
What am I doing wrong ?average-tiger-58107
06/03/2022, 5:51 PMI want to access environment variables from my config as follows:
const config = new pulumi.Config("environment");
const var1 = config.require("VAR_NAME");
const var2 = config.require("ANOTHER_VAR_NAME");
// This works
config:
environment:VAR_NAME: "my value"
environment:ANOTHER_VAR_NAME: "another value"
----------------------
// This does not work
config:
environment:
VAR_NAME: "my value"
ANOTHER_VAR_NAME: "another value"
It feels redundant to list the environment:
prefix on every line. Am I missing something obvious about YAML? Why doesn't this work?bumpy-byte-21437
06/04/2022, 10:23 AMbumpy-byte-21437
06/04/2022, 10:23 AMworried-gold-55244
06/05/2022, 2:58 AMbright-smartphone-89859
06/05/2022, 11:27 AMcrooked-king-6351
06/06/2022, 5:34 AMimport
command?proud-cricket-86351
06/06/2022, 8:35 AMrough-dinner-7791
06/06/2022, 12:10 PMpulumi_docker.docker.ResourceError: No digest available for image xxx:yy
Any idea why ? before update i had 0 issue.
I use pythonmicroscopic-cpu-38113
06/06/2022, 12:33 PMpurple-apartment-59699
06/06/2022, 12:49 PMmicroscopic-cpu-38113
06/06/2022, 1:39 PM--policy-pack <path-to-policy-pack-directory>
has to be supplied in the pulumi up command? In this case, seems like anyone can just alter the policies in the directory and then get their changes applied? Secondly, it seems that the Github Actions for Pulumi doesn't support policy-pack option yet, which means the policy won't be able to be enforced if the workflow is executed via Github Actions?steep-beach-52652
06/06/2022, 5:21 PMbusy-dinner-35828
06/06/2022, 5:46 PMdamp-honey-93158
06/06/2022, 7:25 PMgreat-sunset-355
06/07/2022, 5:45 AMlittle-apartment-30401
06/07/2022, 7:57 AMblue-judge-71382
06/07/2022, 9:58 AMsilly-smartphone-71988
06/07/2022, 11:46 AMpublic class Sample : ComponentResource
{
private List<Pulumi.AzureNative.RecoveryServices.ProtectionContainer> protectionContainers;
public Sample(ResourceName resourceName, ComponentResourceOptions? options = null) : base(resourceName.Type, resourceName.Name, options)
{
this.protectionContainers = new List<Pulumi.AzureNative.RecoveryServices.ProtectionContainer>();
}
public Create(Output<string> name)
{
var protectionContainer = new RecoveryServices.ProtectionContainer("fooName", new RecoveryServices.ProtectionContainerArgs
{
ContainerName = name,
FabricName = "Azure",
Properties = new Pulumi.AzureNative.RecoveryServices.Inputs.AzureWorkloadContainerArgs
{
[...]
},
ResourceGroupName = this.args.ResourceGroup,
VaultName = this.recoveryServicesVault.Name.Apply(t => t)
}
this.protectionContainers.Add(protectionContainer);
}
public WithBackupFileShare(Output<string> protectedcontainername)
{
var protectionContainer = GetProtectionContainer(protectionContainerName); //always gets null
var _ = new RecoveryServices.ProtectedItem(args.Name, new RecoveryServices.ProtectedItemArgs
{
ContainerName = protectionContainerName,
[...]
},
new CustomResourceOptions { DependsOn = {
protectionContainer //need a Resource descendent here thus why I need a RecoveryServices.ProtectionContainer
}, Parent = protectionContainer });
}
public RecoveryServices.ProtectionContainer? GetProtectionContainer(Output<string> containerName)
{
//how to get back the RecoveryServices.ProtectionContainer from this.protectionContainers?
//when using a for each I have to use item.Name.Apply to compare the name and this returns an Output<> not a RecoveryServices.ProtectionContainer
//i tried to set a local variable from within the apply but it does not work. the variable stays as null
RecoveryServices.ProtectionContainer? protectionContainer = null;
foreach (var item in this.protectionContainers)
{
var test = Output.Tuple<string,string,RecoveryServices.ProtectionContainer>(item.Name, containerName,item).Apply(t =>
{
if (t.Item1 == t.Item2) {
protectionContainer = t.Item3; //does not work protectionContainer stays null
return t.Item3; //
}
else{
return null;
}
});
protectionContainer = test; //does not work because var is of type Output<RecoveryServices.ProtectionContainer>
}
return protectionContainer; //returns null
}
}
rich-agency-75207
06/07/2022, 11:53 AMYAML
interface) - I plan to configure some variables, in my main.yaml
file, to consume these Key values then reference later by other resources definitions.
Question: Will the transient variable ingest the encrypted value or will the call decrypt the value first?rich-agency-75207
06/07/2022, 11:57 AMfew-diamond-68626
06/07/2022, 12:11 PMfew-diamond-68626
06/07/2022, 12:14 PMnarrow-vegetable-60985
06/07/2022, 3:14 PMPulumi.<stack>.yaml
With regular config values (unencrypted) this works well.
Motivation: remove a requirement to set up Pulumi tool locally just for secrets management and rely on Git/CD workflow.
I’ve tried to encrypt data with Google KMS, but it gives me a binary output. So I can’t put this output to Pulumi.<stack>.yaml
shy-hydrogen-95871
06/07/2022, 3:27 PMlively-student-98057
06/07/2022, 9:05 PMfew-diamond-68626
06/08/2022, 8:18 AMworried-xylophone-86184
06/08/2022, 10:23 AMacoustic-continent-29968
06/08/2022, 11:24 AM