Skip to content

Commit

Permalink
Merge pull request #6 from xiwhuang/stacksets
Browse files Browse the repository at this point in the history
Add Stackset Resource
  • Loading branch information
xiwhuang authored May 30, 2020
2 parents f511dde + fc0041c commit 398c985
Show file tree
Hide file tree
Showing 46 changed files with 4,528 additions and 0 deletions.
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

0 comments on commit 398c985

Please sign in to comment.