Hey guys, We made a framework to define super simp...
# general
Hey guys, We made a framework to define super simple JSON config files and deploy your serverless app. Right now, I'm using AWS Cloud Formation, but we want to migrate to Pulumi. My question is if Pulumi has a TS API for controlling the CLI functionality, like deploy, destroy, and diff. If anyone can send me in the right direction it would be super helpful.
That is amazing. Thanks for info.
I'm trying to deploy a dynamodb table from an InlineProgram with an s3 backend. But I get the following error:
Copy code
error: read ".pulumi/meta.yaml": blob (key ".pulumi/meta.yaml") (code=Unknown): MissingEndpoint: 'Endpoint' configuration is required for this service
Any idea why this is happening ?
Shot in the dark, but are you sure you're configuring the
I think I've seen this error when the region isn't being set
This is what i tried
I think the region is set correctly
Yeah, that looks mostly right -- although I don't think you need that
line anymore (guessing you just got started with a slightly older example). I'm not able to repro with your code even when I force using that older plugin, though. What's in your
? The error suggests something's wrong there. For reference, mine's just this:
I don't have a .pulumi folder.
I guess it didn't generate any config files.
I just hit this issue myself -- I wonder if the problem is that you don't have access to the bucket you're trying to use as a backend: https://github.com/pulumi/pulumi/issues/15141
Yeah, I'll bet that's it. I can repro this both with a bucket that doesn't exist and with a bucket that does exist, but that I don't have credentials to access. Make sure
aws s3 ls <s3://pulumi-test-aws>
(or whatever the actual name of your bucket is) works, to validate that the bucket exists and that your credentials are set, then try running your program again. Let me know if that helps!
Thats probably it because i didn't specify the aws profile that needs to be used to generate the credentials
Copy code
await stack.setConfig('aws:profile', { value: 'MY_PROFILE' })
My bucket should be available with my personal profile. Should this work?
I suspect so. Did you try it?
ye it didnt work XD
same error
Does the bucket exist?
Does the
aws s3 ls <s3://your-bucket-name>
command I mentioned earlier work?
If that command works but the Pulumi program fails, in the same shell, then we’ll need to look at your actual code and environment, as this all works for me locally, with your code, minus the bucket name.
i'll try again when i have more time.
But i just realized something.
Is it possible to opt out of the automatic stack adding.
I want to be able to define what resource is added to what stack like so:
Copy code