-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to include external file contents in cli parameters json #1803
Comments
There was a similar request a while back here: #1097 In that scenario, they wanted to be able to specify binary contents as a value, which isn't possible in a JSON document. The most reasonable way to do this would be to reference a file in the JSON document. We've explored several options, but the main constraint we're running into is that we'd need this to be backwards compatible. The solution you've proposed could work. However, if there's existing users that want to specify the literal string value of Another solution proposed was to support something besides JSON. YAML would allow for custom tags (i.e
If we can come up with something that's backwards compatible, I think this is something we should do. |
Ahh, I see where my suggestion might break things. CloudFormation itself does something like the JSON extension you've proposed, so maybe similar to the following in the CLI parameters JSON:
Bonus: the door is then open to adding other functions without breaking backwards compatibility by introducing new. |
Very interesting idea. If we only apply this for scalar values (strings, integers, booleans, floats), then it should be entirely backwards compatible. Previously the value had to be a string, so providing a dictionary type would cause a validation error, so all we would do now is pre-process the data, look for the |
Could this bug be fixed soon? It has exists for one year. I found this issue from https://forums.aws.amazon.com/thread.jspa?threadID=225033 |
Good Morning! We're closing this issue here on GitHub, as part of our migration to UserVoice for feature requests involving the AWS CLI. This will let us get the most important features to you, by making it easier to search for and show support for the features you care the most about, without diluting the conversation with bug reports. As a quick UserVoice primer (if not already familiar): after an idea is posted, people can vote on the ideas, and the product team will be responding directly to the most popular suggestions. We’ve imported existing feature requests from GitHub - Search for this issue there! And don't worry, this issue will still exist on GitHub for posterity's sake. As it’s a text-only import of the original post into UserVoice, we’ll still be keeping in mind the comments and discussion that already exist here on the GitHub issue. GitHub will remain the channel for reporting bugs. Once again, this issue can now be found by searching for the title on: https://aws.uservoice.com/forums/598381-aws-command-line-interface -The AWS SDKs & Tools Team |
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
[email protected]
Domain salmanwaheed.info has exceeded the max emails per hour (172/150 (114%)) allowed. Message will be reattempted later
…------- This is a copy of the message, including all the headers. ------
Received: from github-smtp2-ext5.iad.github.net ([192.30.252.196]:60133 helo=github-smtp2a-ext-cp1-prd.iad.github.net)
by box1177.bluehost.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.89_1)
(envelope-from <[email protected]>)
id 1ej0Qr-001bk7-It
for [email protected]; Tue, 06 Feb 2018 03:24:57 -0700
Date: Tue, 06 Feb 2018 02:24:43 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1517912683;
bh=tqTIm5tCw5vaBvyleO8ZJxQTcNGh4HuAA3sOn2llpwA=;
h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID:
List-Archive:List-Post:List-Unsubscribe:From;
b=hMpxoYpDt4cgnoBejHY3pY4mrkFoLmlyk6l+RGnKPtbFoGAfukLkXSmQCldlWz74g
qIlJIva5Xwv6n8/explqarzvDjmm1cWzyOtgGt9+pJ1BwxT2QiPU3wCMUE/oKC8g2l
+7AGVY6bd4EyC6lysaEJc2TwIi7SBm7AKJsmD304=
From: Andre Sayre <[email protected]>
Reply-To: aws/aws-cli <[email protected]>
To: aws/aws-cli <[email protected]>
Cc: Subscribed <[email protected]>
Message-ID: <aws/aws-cli/issue/1803/issue_event/[email protected]>
In-Reply-To: <aws/aws-cli/issues/[email protected]>
References: <aws/aws-cli/issues/[email protected]>
Subject: Re: [aws/aws-cli] Ability to include external file contents in cli
parameters json (#1803)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_5a79826bee30b_55d33fbb60110f3431538";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: ASayre
X-GitHub-Recipient: salmanwaheed
X-GitHub-Reason: subscribed
List-ID: aws/aws-cli <aws-cli.aws.github.com>
List-Archive: https://github.com/aws/aws-cli
List-Post: <mailto:[email protected]>
List-Unsubscribe: <mailto:unsub+00ef1b3880d8a16eedae29d9046d1fb3ea50ec50436569d392cf000000011691446b92a169ce080705d8@reply.github.com>,
<https://github.com/notifications/unsubscribe/AO8bOGnceRxAIw5z9qu_loNRNDVQjaFlks5tSChrgaJpZM4HdY7p>
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: [email protected]
X-Spam-Status: No, score=0.5
X-Spam-Score: 5
X-Spam-Bar: /
X-Ham-Report: Spam detection software, running on the system "box1177.bluehost.com",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
root\@localhost for details.
Content preview: Closed #1803. -- You are receiving this because you are subscribed
to this thread. Reply to this email directly or view it on GitHub: #1803 (comment)
Closed #1803. [...]
Content analysis details: (0.5 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: github.com]
-0.5 SPF_PASS SPF: sender matches SPF record
0.0 HTML_MESSAGE BODY: HTML included in message
0.7 HTML_IMAGE_ONLY_20 BODY: HTML: images with 1600-2000 bytes of words
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
2.5 DCC_CHECK No description available.
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-2.1 AWL AWL: Adjusted score from AWL reputation of From: address
X-Spam-Flag: NO
----==_mimepart_5a79826bee30b_55d33fbb60110f3431538
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Closed #1803.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1803 (comment)
----==_mimepart_5a79826bee30b_55d33fbb60110f3431538
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<p>Closed <a href="#1803" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="134677976" data-permission-text="Issue title is private" data-url="#1803">#1803</a>.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="#1803 (comment)">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AO8bOBj6efd0Urtt2tEuWfIbUz1Ug4fVks5tSChrgaJpZM4HdY7p">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AO8bOOuL4Y10H27xWlkmkTdLVqQaDUNmks5tSChrgaJpZM4HdY7p.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="#1803 (comment)"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/aws/aws-cli","title":"aws/aws-cli","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/aws/aws-cli"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Closed #1803."}],"action":{"name":"View Issue","url":"#1803 (comment)"}}}</script>
----==_mimepart_5a79826bee30b_55d33fbb60110f3431538--
|
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
[email protected]
Domain salmanwaheed.info has exceeded the max emails per hour (173/150 (115%)) allowed. Message will be reattempted later
…------- This is a copy of the message, including all the headers. ------
------ The body of the message is 6164 characters long; only the first
------ 5000 or so are included here.
Received: from o3.sgmail.github.com ([192.254.112.98]:56835)
by box1177.bluehost.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128)
(Exim 4.89_1)
(envelope-from <[email protected]>)
id 1ej0Qr-001bk0-GS
for [email protected]; Tue, 06 Feb 2018 03:24:58 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com;
h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe;
s=s20150108; bh=AsGNIcF4FLj6IL3v+J9+hO3nHUQ=; b=sy2sSGt4dWRI2+5X
B7ZO/mvLaAtJi1ZHPy4Rl2k+rZoB9ocBgtX5JkP6IDosqBFvEnEw5a4cVTEWZI7u
M9N6W4JUQkKpuLVmKqXlVFPLoOo2Q+uAl851lBHka118XQkHlyGbFBMWtzYkvaE0
b2FJIIO5ZOeYtRcLuekuKUPd0R4=
Received: by filter0953p1mdw1.sendgrid.net with SMTP id filter0953p1mdw1-24171-5A79826B-5
2018-02-06 10:24:43.174478305 +0000 UTC
Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17])
by ismtpd0010p1iad1.sendgrid.net (SG) with ESMTP id HdDB_aMjTxueywQ5RzTgpw
for <[email protected]>; Tue, 06 Feb 2018 10:24:43.135 +0000 (UTC)
Date: Tue, 06 Feb 2018 10:24:43 +0000 (UTC)
From: Andre Sayre <[email protected]>
Reply-To: aws/aws-cli <[email protected]>
To: aws/aws-cli <[email protected]>
Cc: Subscribed <[email protected]>
Message-ID: <aws/aws-cli/issues/1803/[email protected]>
In-Reply-To: <aws/aws-cli/issues/[email protected]>
References: <aws/aws-cli/issues/[email protected]>
Subject: Re: [aws/aws-cli] Ability to include external file contents in cli
parameters json (#1803)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_5a79826b5175_11b73fd164316f30596191";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: ASayre
X-GitHub-Recipient: salmanwaheed
X-GitHub-Reason: subscribed
List-ID: aws/aws-cli <aws-cli.aws.github.com>
List-Archive: https://github.com/aws/aws-cli
List-Post: <mailto:[email protected]>
List-Unsubscribe: <mailto:unsub+00ef1b3880d8a16eedae29d9046d1fb3ea50ec50436569d392cf000000011691446b92a169ce080705d8@reply.github.com>,
<https://github.com/notifications/unsubscribe/AO8bOGnceRxAIw5z9qu_loNRNDVQjaFlks5tSChrgaJpZM4HdY7p>
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: [email protected]
X-SG-EID: 92ws1MVnlto3blxqXlf5goB0ee0kdDGWR6vcWx8d649SY8HqB142WP5rzu5jeMTBxJnVW3YExgXn/z
7HbmDlvq6l8eEmZp16u8t35b9zLF68qM9RABnP+2t52gDQIXiHsx+ZoVesZqnUlJUSmZFY1k7zNDmW
Z129bndNP1IE6qzEkK5pbWKV1tNlzEgPNWs0TiiEKDAjRb5BVvSM3d1FQfufrbOIa7peig4K/0eCKW
M=
X-Spam-Status: No, score=-2.0
X-Spam-Score: -19
X-Spam-Bar: --
X-Ham-Report: Spam detection software, running on the system "box1177.bluehost.com",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
root\@localhost for details.
Content preview: Good Morning! We're closing this issue here on GitHub, as
part of our migration to [UserVoice](https://aws.uservoice.com/forums/598381-aws-command-line-interface)
for feature requests involving the AWS CLI. [...]
Content analysis details: (-2.0 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: uservoice.com]
-0.5 SPF_PASS SPF: sender matches SPF record
-1.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4)
[192.254.112.98 listed in wl.mailspike.net]
-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
domain
0.0 HTML_MESSAGE BODY: HTML included in message
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-0.8 RCVD_IN_MSPIKE_WL Mailspike good senders
0.4 AWL AWL: Adjusted score from AWL reputation of From: address
X-Spam-Flag: NO
----==_mimepart_5a79826b5175_11b73fd164316f30596191
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Good Morning!
We're closing this issue here on GitHub, as part of our migration to [UserV=
oice](https://aws.uservoice.com/forums/598381-aws-command-line-interface) f=
or feature requests involving the AWS CLI.
This will let us get the most important features to you, by making it easie=
r to search for and show support for the features you care the most about, =
without diluting the conversation with bug reports.
As a quick UserVoice primer (if not already familiar): after an idea is pos=
ted, people can vote on the ideas, and the product team will be responding =
directly to the most popular suggestions.
We=E2=80=99ve imported existing feature requests from GitHub - Search for t=
his issue there!
And don't worry, this issue will still exist on GitHub for posterity's sake=
. As it=E2=80=99s a text-only import of the original post into UserVoice, =
we=E2=80=99ll still be keeping in mind the comments and discussion that alr=
eady exist here on the GitHub issue.
GitHub will remain the channel for reporting bugs.=20=20
Once again, this issue can now be found by searching for the title on: http=
s://aws.uservoice.com/forums/598381-aws-command-line-interface=20
-The AWS SDKs & Tools Team
--=20
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1803 (comment)=
----==_mimepart_5a79826b5175_11b73fd164316f30596191
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<p>Good Morning!</p>
<p>We're closing this issue here on GitHub, as part of our migration to <a =
href=3D"https://aws.uservoice.com/forums/598381-aws-command-line-interface"=
rel=3D"nofollow">UserVoice</a> for feature requests involving the AWS CLI.=
</p>
<p>This will let us get the most important features to you, by making it ea=
sier to search for and show support for the features you care the most abou=
t, without diluting the conversation with bug reports.</p>
<p>As a quick UserVoice primer (if not already familiar): after an idea is =
posted, people can vote on the ideas, and the product team will be respondi=
ng directly to the most popular suggestions.</p>
<p>We=E2=80=99ve imported existing feature requests from GitHub - Search fo=
r this issue there!</p>
<p>And don't worry, this issue will still exist on GitHub for posterity's s=
ake. As it=E2=80=99s a text-only import of the original post into UserVoic=
e, we=E2=80=99ll still be keeping in mind the comments and discussion that =
already exist here on the GitHub issue.</p>
<p>GitHub will remain the channel for reporting bugs.</p>
<p>Once again, this issue can now be found by searching for the title on: <=
a href=3D"https://aws.uservoice.com/forums/598381-aws-command-line-interfac=
e" rel=3D"nofollow">https://aws.uservoice.com/forums/598381-aws-command-lin=
e-interface</a></p>
<p>-The AWS SDKs & Tools Team</p>
<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&mda=
sh;<br />You are receiving this because you are subscribed to this thread.<=
br />Reply to this email directly, <a href=3D"https://github.com/aws/aws-cl=
i/issues/1803#issuecomment-363378385">view it on GitHub</a>, or <a href=3D"=
https://github.com/notifications/unsubscribe-auth/AO8bOBj6efd0Urtt2tEuWfIbU=
z1Ug4fVks5tSChrgaJpZM4HdY7p">mute the thread</a>.<img alt=3D"" height=3D"1"=
src=3D"https://github.com/notifications/beacon/AO8bOOuL4Y10H27xWlkmkTdLVqQ=
aDUNmks5tSChrgaJpZM4HdY7p.gif" width=3D"1" /></p>
<div itemscope itemtype=3D"http://schema.org/EmailMessage">
<div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/ViewAction=
">
<link itemprop=3D"url" href=3D"#1803=
#issuecomment-363378385"></link>
<meta itemprop=3D"name" content=3D"View Issue"></meta>
</div>
<meta itemprop=3D"description" content=3D"View this Issue on GitHub"></meta>
</div>
<script type=3D"application/json" data-scope=3D"inboxmarkup">{"api_version"=
:"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"Gi=
tHub"},"entity":{"external_key":"github/aws/aws-cli","title":"aws/aws-cli",=
"subtitle":"GitHub repository","main_image_url":"https://cloud.githubuserco=
ntent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png",=
"avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842=
166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in Git=
Hub","url":"https://github.com/aws/aws-cli"}},"updates":{"snippets":[{"icon=
":"PERSON","message":"@ASayre in #1803: Good Morning!\r\n\r\nWe're closing =
this issue here on GitHub, as part of our migration to [UserVoice](https://=
aws.uservoice.com/forums/598381-aws-command-line-interface) for feature req=
uests involving the AWS CLI.\r\n\r\nThis will let us get the most important=
features to y
|
Based on community feedback, we have decided to return feature requests to GitHub issues. |
This is still an issue 2 years on. Perhaps your backlog management needs looking at. |
Greetings! It looks like this issue hasn’t been active in longer than one year. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
For instance, to create a new CloudFormation stack, I would like to do something like
aws cloudformation create-stack --cli-input-json file://mystack.cliparameters
where the contents of
mystack.cliparameters
is{ "TemplateBody": "file://mystack.cloudformationtemplate", "Parameters": [ { "ParameterKey": "UserDataParam", "ParameterValue": "file://userdata.sh", "UsePreviousValue": false } }
mystack.cloudformationtemplate
then contains the actual CloudFormation template, anduserdata.sh
contains the script used to bootstrap the instance at launch time.Currently, I have to do
aws cloudformation create-stack --cli-input-json file://mystack.cliparameters --template-body file://mystack.cloudformationtemplate
...and specify the userdata explicitly within
mystack.cliparameters
which can get very messy with newlines if the userdata script is more than just a few lines.The text was updated successfully, but these errors were encountered: