awspec | RSpec tests for your AWS resources | DevOps library
kandi X-RAY | awspec Summary
kandi X-RAY | awspec Summary
RSpec tests for your AWS resources. Resource Types | Contributing.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Checks if the given security group is valid .
- Finds all instances of the node in the EC2 instances .
- Determines if the specified rule has an event .
- Determines whether this rule matches the rules .
- Sends the default value of the request .
- This method is used to check if the resource is missing .
- Generates a S3 bucket .
- Returns a string representation of this account
- Prints a version of the current instance .
- Select the virtual network
awspec Key Features
awspec Examples and Code Snippets
Community Discussions
Trending Discussions on awspec
QUESTION
I'm defining my infrastructure in Terraform files. I like Terraform a lot, but I'm having trouble figuring out how to test. I have awspec
, which is really nice and runs RSpec-like tests against the result of your build via the AWS API. But is there a way to do unit tests, like on the results of terraform plan
? What kind of workflow are others using with Terraform?
ANSWER
Answered 2017-Nov-27 at 05:08One approach is to output the results to a file using -out=tempfile
, then run a script to validate whatever you're trying to do, and if all passes you can pass the file into the apply command.
look at -out
here:
https://www.terraform.io/docs/commands/plan.html
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install awspec
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page