Skip to content

chore: Add warning about implicit logical ID usage in sam build#2907

Merged
aahung merged 5 commits intoaws:developfrom
aahung:implicit-api-warning
Jan 7, 2022
Merged

chore: Add warning about implicit logical ID usage in sam build#2907
aahung merged 5 commits intoaws:developfrom
aahung:implicit-api-warning

Conversation

@aahung
Copy link
Contributor

@aahung aahung commented May 27, 2021

Which issue(s) does this change fix?

aws/serverless-application-model#2152

Why is this change necessary?

How does it address the issue?

What side effects does this change have?

Checklist

  • Add input/output type hints to new functions/methods
  • 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
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

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

@hoffa
Copy link
Contributor

hoffa commented Sep 22, 2021

Breadcrumb to related PR: aws/serverless-application-model#2043

build_images=processed_build_images,
aws_region=click_ctx.region,
) as ctx:
SamApiProvider.check_implicit_api_resource_ids(ctx.stacks)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it check whether the template is a SAM template? i.e. with Transform: AWS::Serverless-2016-10-31?

I believe SAM CLI also supports building pure CFN template. In that case, the implicit API logical IDs should not be reserved.

Copy link
Contributor

Choose a reason for hiding this comment

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

Any updates corresponding to this change request?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

@aahung aahung force-pushed the implicit-api-warning branch from 9fb9b7f to 54d6939 Compare October 21, 2021 01:42
@aahung aahung force-pushed the implicit-api-warning branch from 54d6939 to 2979034 Compare January 5, 2022 00:02
@aahung
Copy link
Contributor Author

aahung commented Jan 5, 2022

@CoshUS @hawflau I rebased this PR, moved the invocation from do_cli() to BuildContext.run()

Co-authored-by: Chris Rehn <crehn@outlook.com>
@aahung aahung merged commit ea9a4c7 into aws:develop Jan 7, 2022
mndeveci pushed a commit to mndeveci/aws-sam-cli that referenced this pull request Apr 5, 2022
…2907)

* chore: Add warning about implicit logical ID usage in sam build

* Update samcli/lib/providers/sam_api_provider.py

Co-authored-by: Chris Rehn <crehn@outlook.com>

* Fix a smoke test case where "Transform" is not a str

Co-authored-by: Chris Rehn <crehn@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants