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 support for AWS::IoT::MitigationAction #15

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
23 changes: 23 additions & 0 deletions aws-iot-mitigationaction/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# AWS::IoT::MitigationAction

## Running Contract Tests

You can execute the following commands to run the tests.
You will need to have docker installed and running.

```bash
# Create a CloudFormation stack with contract test dependencies (an IAM Role)
aws cloudformation deploy \
--stack-name cfn-contract-test-dependencies-mitigation-action \
--template-file packaging_additional_published_artifacts/contract_test_dependencies.yml \
--capabilities CAPABILITY_IAM \
--region us-east-1
# Package the code with Maven
mvn package
# Start SAM which will execute lambdas in Docker
sam local start-lambda
# In a separate terminal, run the contract tests
cfn test --enforce-timeout 240
# Execute a single test
cfn test --enforce-timeout 240 -- -k <testname>
```
Loading