Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
tflocal
- Terraform with LocalStackThis package provides tflocal
- a small wrapper script to run Terraform against LocalStack.
pip
terraform
The script uses the Terraform Override mechanism and creates a temporary file localstack_providers_override.tf
to configure the endpoints for the AWS provider
section. The endpoints for all services are configured to point to the LocalStack API (http://localhost:4566
by default).
The tflocal
command line interface can be installed via pip
:
pip install terraform-local
The following environment variables can be configured:
DRY_RUN
: Generate the override file without invoking TerraformTF_CMD
: Terraform command to call (default: terraform
)AWS_ENDPOINT_URL
: hostname and port of the target LocalStack instanceLOCALSTACK_HOSTNAME
: (Deprecated) host name of the target LocalStack instanceEDGE_PORT
: (Deprecated) port number of the target LocalStack instanceS3_HOSTNAME
: special hostname to be used to connect to LocalStack S3 (default: s3.localhost.localstack.cloud
)USE_EXEC
: whether to use os.exec
instead of subprocess.Popen
(try using this in case of I/O issues)<SERVICE>_ENDPOINT
: setting a custom service endpoint, e.g., COGNITO_IDP_ENDPOINT=http://example.com
AWS_DEFAULT_REGION
: the AWS region to use (default: us-east-1
, or determined from local credentials if boto3
is installed)CUSTOMIZE_ACCESS_KEY
: enables to override the static AWS Access Key ID. The following cases are taking precedence over each other from top to bottom:
AWS_ACCESS_KEY_ID
environment variable is setaccess_key
is set in the Terraform AWS providerAWS_PROFILE
environment variable is set and configuredAWS_DEFAULT_PROFILE
environment variable is set and configureddefault
profile's credentials are configuredAWS_ACCESS_KEY_ID
mock valueAWS_ACCESS_KEY_ID
: AWS Access Key ID to use for multi account setups (default: test
-> account ID: 000000000000
)SKIP_ALIASES
: Allows to skip generating AWS provider overrides for specified aliased providers, e.g. SKIP_ALIASES=aws_secrets,real_aws
The tflocal
command has the same usage as the terraform
command. For detailed usage,
please refer to the man pages of terraform --help
.
SKIP_ALIASES
configuration environment variableDRY_RUN
and patch S3 backend entrypointspackaging
module to install requirementsuse_s3_path_style
detection when setting S3_HOSTNAME or LOCALSTACK_HOSTNAMEregion
to provider configmeteringmarketplace
service endpointThis software library is released under the Apache License, Version 2.0 (see LICENSE
).
FAQs
Thin wrapper script to run Terraform against LocalStack
We found that terraform-local demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.