Skip to content

Fix #3618 s3uploader writing to stdout#4147

Merged
justindho merged 1 commit intoaws:developfrom
cthulhuology:develop
May 27, 2022
Merged

Fix #3618 s3uploader writing to stdout#4147
justindho merged 1 commit intoaws:developfrom
cthulhuology:develop

Conversation

@cthulhuology
Copy link
Copy Markdown

The package command writes the template out to stdout. Having the
status written on stderr results in the standard practice of piping
stdout to a template file to break.

eg. aws cloudformation package --template-file cloudformation.yaml
--s3-bucket goehd-test > cloudformation.pkg

This results in the value

\rUploading ...

In the first line of the output with deploy complaining about
mapped values not being allowed in .

Redirecting this to stderr reverts the behavior to be compliant with
standard practice.

Issue #3618

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kdaily kdaily added cloudformation package-deploy customization Issues related to CLI customizations (located in /awscli/customizations) labels Oct 20, 2021
The package command writes the template out to stdout.  Having the
status written on stderr results in the standard practice of piping
stdout to a template file to break.

eg.  aws cloudformation package --template-file cloudformation.yaml
--s3-bucket goehd-test > cloudformation.pkg

This results in the value

\rUploading ...

In the first line of the output with deploy complaining about
mapped values not being allowed in <unicode string>.

Redirecting this to stderr reverts the behavior to be compliant with
standard practice.
Copy link
Copy Markdown
Contributor

@justindho justindho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @cthulhuology!

@justindho justindho merged commit afe3808 into aws:develop May 27, 2022
@justindho justindho added pending-release This issue will be fixed by an approved PR that hasn't been released yet. released and removed pending-release This issue will be fixed by an approved PR that hasn't been released yet. labels May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cloudformation package-deploy community customization Issues related to CLI customizations (located in /awscli/customizations) released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants