Fork me on GitHub
#aws
<
2017-04-04
>
juliobarros18:04:11

I have a problem getting amazonica to list my cloud formation stacks (cf/list-stacks) I’m able to list them with the aws cli and I can list my s3 buckets with amazonica (so I don’t think its a permissions error). All I get back is {:stack-summaries []} … any ideas? Thanks in advance.

Ed18:04:32

@juliobarros are you looking at the right region?

juliobarros18:04:13

Hmm … the aws cli works so I thought it would ‘inherit’ all the same settings.

juliobarros18:04:39

The config is set to the right region.

juliobarros19:04:28

@l0st3d You were right. I wrapped an explicit with-credential around it and got my stacks. … I wonder how the region is set and why it works for S3 and not cloudformation.

Ed19:04:36

@juliobarros amazonica is a bit inconsistent about using :region and :endpoint ... I think it comes from the underlying aws lib, and the fact that s3 is so old now 😉

Ed19:04:21

was just about to find some code where i had done that sort of thing and work out what i did ... but then you worked it out 😉

juliobarros19:04:22

Thanks. I didn’t mention that it also works with (cf/list-stacks {:endpoint “us-west-2”})