breezy-butcher-78604
03/22/2021, 2:14 AMclever-byte-21551
03/22/2021, 8:05 AMpulumi plugin ls
damp-school-17708
03/22/2021, 11:16 AMworried-knife-31967
03/22/2021, 11:35 AMPulumi.Config
in c# for unit testing? doesn't appear to be going through the mocks at the moment 😕prehistoric-coat-10166
03/22/2021, 11:37 AMPULUMI_CONFIG
environment variable
for example I have the following utility method I use for my unit tests
public static void WithConfig(Dictionary<string, object> config)
{
var values = System.Text.Json.JsonSerializer.Serialize(config, new System.Text.Json.JsonSerializerOptions()
{
});
Environment.SetEnvironmentVariable("PULUMI_CONFIG", values);
}
Which I can then use in my test like so
WithConfig(new Dictionary<string, object>()
{
{ "key:value", "test-value" },
});
bland-army-56447
03/22/2021, 11:44 AMapiECRRepo, err := ecr.NewRepository(ctx, "fooapp-api-pulumi", nil)
if err != nil {
return err
}
ctx.Export("apiRepoUrl", apiECRRepo.RepositoryUrl)
uiECRRepo, err := ecr.NewRepository(ctx, "fooapp-ui-pulumi", nil)
if err != nil {
return err
}
ctx.Export("uiRepoUrl", uiECRRepo.RepositoryUrl)
Now I’m trying out the import feature using this code:
apiECRRepo, err := ecr.NewRepository(ctx, "fooapp-api-pulumi-b730658", nil, pulumi.Import(pulumi.ID("fooapp-api-pulumi-b730658")))
if err != nil {
return err
}
ctx.Export("apiRepoUrl", apiECRRepo.RepositoryUrl)
uiECRRepo, err := ecr.NewRepository(ctx, "fooapp-ui-pulumi-b25077e", nil, pulumi.Import(pulumi.ID("fooapp-ui-pulumi-b25077e")))
if err != nil {
return err
}
ctx.Export("uiRepoUrl", uiECRRepo.RepositoryUrl)
The repos were created with the name fooapp-...
and then Pulumi added some lil hash/id whatever. I’m not sure if this belongs to the name/id now or not.
The error I get:
Diagnostics:
aws:ecr:Repository (fooapp-api-pulumi-b730658):
warning: inputs to import do not match the existing resource; importing this resource will fail
aws:ecr:Repository (fooapp-ui-pulumi-b25077e):
warning: inputs to import do not match the existing resource; importing this resource will fail
So my question is: What inputs do not match?
I can also see by [diff: ~name]; 1 warning
that it seems the name differs. But is there any way to show me the diff? Then I could get an idea on what’s the issue but nope. If I jun the command with -j
to get JSON output I can see the diff but it says "detailedDiff": null
Great 😅better-shampoo-48884
03/22/2021, 11:48 AMbetter-shampoo-48884
03/22/2021, 11:48 AMprehistoric-coat-10166
03/22/2021, 11:50 AMservice.env
network.env
from https://github.com/pulumi/pulumi/issues/2522#issuecomment-593088942better-shampoo-48884
03/22/2021, 11:57 AMbetter-shampoo-48884
03/22/2021, 11:58 AMworried-knife-31967
03/22/2021, 12:02 PMbored-oyster-3147
03/22/2021, 12:57 PMworried-knife-31967
03/22/2021, 1:20 PMworried-knife-31967
03/22/2021, 2:19 PMbetter-shampoo-48884
03/22/2021, 2:36 PMadorable-alligator-23779
03/22/2021, 3:46 PMpulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 3.26.1 260 MB 5 days ago 5 days ago
kubernetes resource 2.8.3 67 MB 10 minutes ago 10 minutes ago
adorable-alligator-23779
03/22/2021, 3:49 PMbrave-angle-33257
03/22/2021, 5:34 PMbetter-shampoo-48884
03/22/2021, 6:03 PMfresh-summer-65887
03/22/2021, 6:22 PMbetter-shampoo-48884
03/22/2021, 6:31 PMbetter-shampoo-48884
03/22/2021, 6:31 PMbetter-shampoo-48884
03/22/2021, 6:33 PMmysterious-piano-17006
03/22/2021, 7:33 PMaws.lambda.CallbackFunction
However, my function requires a library that requires aws-sdk; When running my Lambda, it complains that jmespath is not installed (a dependency of aws-sdk); when I add it to my package.json, it then complains that xml2js is missing, so I guess it is a bad idea to add all awk-sdk's dependencies to my Pulumi project's package.json.
So I am looking for a way for Pulumi to exclude my dependency's awk-code from the package. I understand I can pass a codePathOptions
object with a extraExcludePackages
attribute to CallbackFunction
but I did not find docs about it and according to the code it takes an array of package names and aws-sdk is always added to it.
So here is my question (thanks for reading all the context ;)) : What is the syntax I should use to exclude my dependency's awk-sdk?
Thanks! 🙂adamant-translator-31969
03/22/2021, 7:37 PMdebug(msg: string, resource?: resourceTypes.Resource, streamId?: undefined | number, ephemeral?: undefined | false | true): Promise<void>
adorable-alligator-23779
03/22/2021, 10:21 PMrefined-potato-69402
03/23/2021, 9:59 AMtimed out waiting to be Ready
wide-crayon-4093
03/23/2021, 10:03 AMPulumi.stack_name.config_bucket.yaml
dazzling-sundown-39670
03/23/2021, 10:44 AM