Skip to content
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

Add Stackset Resource #6

Merged
merged 20 commits into from
May 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: java
dist: bionic
jdk: openjdk11
env:
global:
- PYENV_VERSION=3.7
- AWS_REGION="us-east-1"
- AWS_DEFAULT_REGION=$AWS_REGION
install:
- pip3 install --user pre-commit cloudformation-cli-java-plugin
script:
- pre-commit run --all-files --verbose
- cd "$TRAVIS_BUILD_DIR/aws-cloudformation-stackset"
# from Maven 3.6.1+, should use `--no-transfer-progress` instead of Slf4jMavenTransferListener
- >
mvn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
-B
clean verify
after_failure:
- cat "$TRAVIS_BUILD_DIR/aws-cloudformation-stackset/rpdk.log"
20 changes: 20 additions & 0 deletions aws-cloudformation-stackset/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# macOS
.DS_Store
._*

# Maven outputs
.classpath

# IntelliJ
*.iml
.idea
out.java
out/
.settings
.project

# auto-generated files
target/

# our logs
rpdk.log
16 changes: 16 additions & 0 deletions aws-cloudformation-stackset/.rpdk-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"typeName": "AWS::CloudFormation::StackSet",
"language": "java",
"runtime": "java8",
"entrypoint": "software.amazon.cloudformation.stackset.HandlerWrapper::handleRequest",
"testEntrypoint": "software.amazon.cloudformation.stackset.HandlerWrapper::testEntrypoint",
"settings": {
"namespace": [
"software",
"amazon",
"cloudformation",
"stackset"
],
"codegen_template_path": "guided_aws"
}
}
12 changes: 12 additions & 0 deletions aws-cloudformation-stackset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AWS::CloudFormation::StackSet

Congratulations on starting development! Next steps:

1. Write the JSON schema describing your resource, `aws-cloudformation-stackset.json`
1. Implement your resource handlers.

The RPDK will automatically generate the correct resource model from the schema whenever the project is built via Maven. You can also do this manually with the following command: `cfn generate`.

> Please don't modify files under `target/generated-sources/rpdk`, as they will be automatically overwritten.

The code uses [Lombok](https://projectlombok.org/), and [you may have to install IDE integrations](https://projectlombok.org/) to enable auto-complete for Lombok-annotated classes.
Loading