https://pulumi.com logo
#getting-started
Title
# getting-started
e

eager-pilot-22899

08/29/2022, 2:33 PM
Hey! I'm trying to do something very basic, just create an EC2 instance with Pulumi. I copied and pasted the example from the docs but they don't work. 😕 Here's my code:
Copy code
const vpc = new aws.ec2.Vpc("vpc", {
    cidrBlock: "10.0.0.0/16",
});
And here's my error:
Copy code
+  pulumi:pulumi:Stack testproject-abc123-dev created 
    aws:ec2:Vpc vpc **failed** 1 error
 
Diagnostics:
  aws:ec2:Vpc (vpc):
    error: could not validate provider configuration: 1 error occurred:
        * Invalid or unknown key
Does anyone know what's going on? Thanks!
I initially thought this was to do with my auth key, but I verified they're being read
b

billowy-army-68599

08/29/2022, 2:41 PM
This is telling you that you’ve got a key in your provider settings that doesn’t have the correct name. Can you share your Pulumi stack YAML configuration file? Omit any secret values if you haven’t encrypted them
e

eager-pilot-22899

08/29/2022, 2:42 PM
Hi - I'm using the automation api, so don't have a yaml file
b

billowy-army-68599

08/29/2022, 2:43 PM
Okay can you share how you’re setting config options?
e

eager-pilot-22899

08/29/2022, 2:47 PM
Ah, I think you pointing me in the direction of my config may have solved it. I'll test a change real quick.
@billowy-army-68599 Thanks, turns out my config was improperly set. Fixed it and it worked. Thanks a lot!!
b

billowy-army-68599

08/29/2022, 3:08 PM
4 Views