Skip to content

Package and deploy in one command - #1532

Merged
sriram-mv merged 5 commits into
aws:release-v0.32.0from
sriram-mv:package_and_deploy
Nov 15, 2019
Merged

sriram-mv merged 5 commits into
aws:release-v0.32.0from
sriram-mv:package_and_deploy

Conversation

@sriram-mv

Copy link
Copy Markdown
Contributor
  • if the template is left unspecified, built artifacts are chosen and s3 bucket is optionally needed to deploy in one command.

  • existing workflows to package and deploy do not break.

  • Write Design Document (Do I need to write a design document?)

  • Write unit tests

  • Write/update functional tests

  • Write/update integration tests

  • make pr passes

  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sriram-mv
sriram-mv requested a review from sanathkr November 15, 2019 06:03
Comment thread samcli/commands/deploy/command.py Resolved
Comment thread samcli/commands/deploy/command.py Resolved
"changes to be made to the stack. The default behavior is to return a"
"non-zero exit code.",
)
@click.option(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I know we talked about this before, why is this explicitly required? can't we default to using JSON for the intermediate template?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, we can. user had the option with package, do we gain anything by removing it from deploy?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There is no obvious user benefit of this flag in sam deploy. Why expose then?

region=region,
profile=profile,
) as package_context:
package_context.run()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why are you packaging always? This would be a breaking change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No. its an attempt to package, if the codeuri's already contain packaged contents, we do not repackage.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is skirting the lines of a breaking change. Is there any other mechanism to create two clear code paths, one for previous experience and other for new one?

And, this relies on the fact that sam package is idempotent. That's an undocumented assumption of sam package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

#1533. Added this question here.

Comment thread samcli/commands/package/exceptions.py Resolved

@sriram-mv sriram-mv left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Replied to comments.

- `samcli/commands/deploy/command.py` has high number of local
  variables, because of the nature of command, it has high number
  of arguments.

@sriram-mv sriram-mv left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added to list.

@sriram-mv
sriram-mv merged commit 7d360ad into aws:release-v0.32.0 Nov 15, 2019
sriram-mv added a commit that referenced this pull request Nov 20, 2019
* feat: beginnings of package and deploy together

* fix: plumb through configuration

- need to add additional parameters over from package.

* fix: conditional check to print text on package during deploy

* fix: exceptions for `package`

* lint: local variables rule

- `samcli/commands/deploy/command.py` has high number of local
  variables, because of the nature of command, it has high number
  of arguments.
sriram-mv added a commit that referenced this pull request Nov 23, 2019
* feat: beginnings of package and deploy together

* fix: plumb through configuration

- need to add additional parameters over from package.

* fix: conditional check to print text on package during deploy

* fix: exceptions for `package`

* lint: local variables rule

- `samcli/commands/deploy/command.py` has high number of local
  variables, because of the nature of command, it has high number
  of arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants