terraspace | Terraspace : The Terraform Framework | Infrastructure Automation library
kandi X-RAY | terraspace Summary
kandi X-RAY | terraspace Summary
Official Docs Site: terraspace.cloud.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Runs the given block .
- Runs the command - line arguments in a list of options .
- Check if a workspace is true .
- Run the command
- Draw a graph .
- Return a pretty printed comment
- Iterate over all resources
- Checks whether the given question is true .
- Returns true if this stack should be included .
- Require gemspec for a gem
terraspace Key Features
terraspace Examples and Code Snippets
Community Discussions
Trending Discussions on terraspace
QUESTION
Sometimes I need to check what resources will be created within an environment without automatically creating state s3 bucket. I use terraspace plan
but it automatically create an s3 bucket with the TS_ENV
variable name as set in the backend.tf
Example:
TS_ENV=prod terraspace plan STACK
creates a new s3 bucket for the prod environment.
Is there an option to disable that behaviour and only create the bucket when terraspace up
?
ANSWER
Answered 2022-Mar-29 at 08:04You need to create a 'aws.rb' file in 'config/plugins/' folder.
Then you can put the following config to override the default behaviour:
QUESTION
As far as I can see there are three ways to make Terraform use prepopulated plugins (to prevent downloads from web on init
command).
terraform provider mirror
command +provider_installation
in .terraformrc (or terraform.rc)terraform init -plugin-dir
command- warming up provider-plugin-cache
Are they all equivalent? Which one is recommended? My use case is building "deployer" docker image for CI/CD pipeline and also I am considering the possibility to use Terraform under Terraspace.
...ANSWER
Answered 2021-Dec-20 at 03:39Not sure about Terraspace. Only regarding plugins:
terraform provider mirror
command +provider_installation
in .terraformrc (or terraform.rc): seems more secure version, but it requires to update the local mirror whenever you change plugin versions. It's not very clear whether you can reuse the same mirror location for different configurations requiring different set or versions of plugins.terraform init -plugin-dir
command: terraform commands will fail if required plugins and specific versions are not preinstalled. This approach seems to be the most time consuming and the most controlling of available plugins.
When this option is used, only the plugins in the given directory are available for use.
- warming up provider-plugin-cache: this one can re-use pre-downloaded plugin versions and also will try to download new versions when you update the constraints. This approach will work if your cache path is writable. If it is not then terraform probably will fail as 2nd option. This option seems to be the least time consuming and more close to the local development. Cache is not automatically cleaned up and will need some cleaning automation.
Depending on whether you have many different configurations, what level of security is required, whether you have capacity to update caches/mirrors frequently enough to follow with required versions, the choice could be different as well.
QUESTION
When I run terraspace bundle
I see the following error message:
ANSWER
Answered 2021-Sep-11 at 22:34I decided to try rm -rf /private/tmp/terraspace/bundler/cache/
on each of the failing modules.
After I did so the modules installed correctly:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install terraspace
The new command generates a starter project.
The up command creates an s3 bucket.
The down command cleans up and deletes the bucket.
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