-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
docs: update example apps to use policy templates and parameters #554
Conversation
Could you add a testing section to your PR description? Just wondering if you actually tried to deploy these updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using policy statements makes everything look much better, this is great! Next update that is needed is to add !Ref
commands to properly reference template parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you verify that the apps still work after updating the node.js version? Or will that be a separate task?
@jlhood @keetonian I'm going to test several of these, but will rely on end-to-end testing when it comes time to redeploy these to the app repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I really appreciate the readability improvements of the policy templates! Some blockers though:
- Need to remove all Name Metadata fields (remove entire Metadata section if Name is the only field in it)
- Looks like there's a script that shouldn't be part of this PR.
@@ -1,6 +1,11 @@ | |||
AWSTemplateFormatVersion: '2010-09-09' | |||
Transform: 'AWS::Serverless-2016-10-31' | |||
Description: 'Blueprint for CloudFront ab testing, implemented in NodeJS.' | |||
Metadata: | |||
Name: cloudfrontabtest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this metadata. It'll actually cause publish to fail because the published name (cloudfront-ab-test) does not match this field. Should just remove the metadata completely.
examples/apps/update-apps.js
Outdated
const bluePrintAppDirectories = readdirSync(bluePrintsDirectory) | ||
const ignore = ['.DS_Store', 'mass-pub'] | ||
const appIgnore = ['node_modules'] | ||
bluePrintAppDirectories.forEach(blueprintAppDirectoryName => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script doesn't seem like it belongs in this PR. Remove?
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.