Add ability to export CF output json #1290
Replies: 9 comments 1 reply
-
Every |
Beta Was this translation helpful? Give feedback.
-
how do I access the "Ref: MyBucket" value after a deploy from Outputs? Am I missing an existing output location? |
Beta Was this translation helpful? Give feedback.
-
Sorry missed the ending.. yes I could query all the resources from CF or from each API , mapping to the logical ID, to get physical ID and then parse the JSON properties. These would be great to receive in a post deploy macro though. |
Beta Was this translation helpful? Give feedback.
-
Is You could chain an
|
Beta Was this translation helpful? Give feedback.
-
Fair enough - that seems like an ok option if I wrap arc in another script
and put all the vars of interest in the Outputs. Having the whole lot in a
macro feels like a nice feature though (eg auto add all resources and
attributes to a param of an output macro). As a minimal option, outputting
the Outputs json by default feels like a natural complement to sam.json
…On Thu, Mar 18, 2021 at 5:42 PM Fil Maj ***@***.***> wrote:
Is MyBucket something you added on your own via a plugin/macro, or a
reference to the @static bucket arc supports out of the box? The
"Outputs" tab in CloudFormation for any Stacks generated by arc include
three things (so far): the API Gateway ID of the app, the URL of the API
Gateway deployment, and the http URL of the static bucket.
You could chain an arc deploy call with, say, an aws CLI command to get
any information you want from the stack, including the out-of-the-box
outputs arc provides (using the DescribeStack
<https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeStacks.html>
operation), e.g.
$ arc deploy && AWS_REGION="us-west-2" aws cloudformation describe-stacks --stack-name MyAppNameStaging
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1097 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOPSOVVDQGDMIF3RIS7C7LTEI3PDANCNFSM4ZNBKBLA>
.
|
Beta Was this translation helpful? Give feedback.
-
Regarding this question:
Here's how you could extract just the static bucket URL w/
I don't think we want I'm going to close this issue for now. |
Beta Was this translation helpful? Give feedback.
-
oh! I asked for this issue sorry! I've long intended to have a |
Beta Was this translation helpful? Give feedback.
-
already many (but not all) resource outputs present in the Outputs section
of the sam.json. Are you looking for something more?
The sam.json outputs are never realised in arc land though - thanks for the
CF cli command, just thought it would be good to realise sam.outputs.json -
with possible output macro hook to continue the pipeline.
…On Thu, Mar 25, 2021 at 8:36 PM Brian LeRoux ***@***.***> wrote:
Reopened #1097 <#1097>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1097 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOPSOSXZCWNG7XB4YYDCFLTFONDTANCNFSM4ZNBKBLA>
.
|
Beta Was this translation helpful? Give feedback.
-
I think this factors into a larger CLI discussion we need to have. Right now the advice we'd provide is to just read the sam.json file Architect writes to the root of your project for deployment. Would that work? |
Beta Was this translation helpful? Give feedback.
-
It would be useful to access deployed resource details after a deployment has run - such as resource IDs / ARNs / CF generated names.
Describe the solution you'd like
A command line flag to export the CF outputs data as specific in sam.json (and subject to macros)
Describe alternatives you've considered
Every deploy could generate sam-outputs.json rather than make it optional. Another option is to chain macros after deploy, to allow the same mechanism to continue processing / allow arc deploy to live within a larger processing chain.
Beta Was this translation helpful? Give feedback.
All reactions