fancy-spoon-7206
07/04/2022, 9:24 PMfunc TestInfrastructure(t *testing.T) {
cwd, err := os.Getwd()
if err != nil {
t.FailNow()
}
// This gives an invalid memory address error!!!!
// conf := config.New(ctx, "aep")
// conf.RequireObject("config", &InternalConfig)
test := integration.ProgramTestOptions{
DestroyOnCleanup: true,
Quick: true,
SkipRefresh: true,
Verbose: true,
Dir: path.Join(cwd, "..", ".."),
// There seems to an issue with ingesting config from the stack yaml file using
// the Pulumi helper.ConfInit function. All the examples that I see on their site are hardcoded too.
Config: map[string]string{
"aws:region": "us-east-1",
"aws:profile": "sandbox",
.
.
.
I tried using the RequireObject method to get the config from the stack yaml file and it failed with an invalid memory address or nil pointer dereference
.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by