https://github.com/mrk-qa/cloudformation-with-rspec-server-test
RSpec Framework using CloudFormation to provision infrastructure on AWS.
https://github.com/mrk-qa/cloudformation-with-rspec-server-test
Last synced: 2 months ago
JSON representation
RSpec Framework using CloudFormation to provision infrastructure on AWS.
- Host: GitHub
- URL: https://github.com/mrk-qa/cloudformation-with-rspec-server-test
- Owner: mrk-qa
- Created: 2024-01-16T19:30:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T21:46:44.000Z (over 1 year ago)
- Last Synced: 2025-01-23T04:29:16.812Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RSpec using CloudFormation to provision infrastructure on AWS ☁️
------
## ✅ Requirements
- [aws-cli] - v 2.15.4
- [ruby] - v 2.5.1
- [rspec] - v 3.12.0## 📑 Resources Template for CloudFormation
```
pipeline.yaml
|-- S3BucketBuilds
|-- CodePipeline
|-- CodeBuild
|-- CodePipelineRole
|-- CodeBuildRole
|-- EventsRule
|-- EventRole
|-- EventManagedPolicy
```## 📑 Test Project Structure
```
rspec_tests
|-- spec
| |-- *_spec.rb
| |-- *_helper.rb
|-- Gemfile
|-- Rakefile
|-- scripts
| |-- rspec.sh
```
## 📑 Init and Destroy Stack*Configure ${variables} for the CLI before running the command*
Command to init the stack: `aws cloudformation create-stack --stack-name rspec-server-test --template-body file://pipeline.yaml --parameters ParameterKey=RepositoryName,ParameterValue=cloudformation-with-rspec-server-test ParameterKey=ApplicationName,ParameterValue=cloudformation-with-rspec ParameterKey=SecurityGroupId,ParameterValue=${sg-example} ParameterKey=VpcId,ParameterValue=${vpc-example} ParameterKey=SubnetId,ParameterValue=${subnet-example} ParameterKey=Region,ParameterValue=us-east-2 ParameterKey=Keypair,ParameterValue=${ec2-example} ParameterKey=AccountId,ParameterValue=${162*} ParameterKey=GitHubToken,ParameterValue=${ghp_1*example} --capabilities CAPABILITY_NAMED_IAM`
Command to destroy the stack: `aws cloudformation delete-stack --stack-name rspec-server-test`
## 🔮 Support this project
If you want to support this project, leave a ⭐.
---
Made with 💙 by Marco Antonio 👋 [Meu LinkedIn](https://www.linkedin.com/in/mrk-silva/)