add localstack helpfull commands section in README.md
parent
7ca62c64c2
commit
7f48746599
|
|
@ -63,3 +63,53 @@ localstack status services
|
|||
|
||||
more information on: https://github.com/localstack/localstack
|
||||
|
||||
## Helpful commands
|
||||
|
||||
use ```tflocal``` instead ```terraform```:
|
||||
|
||||
```bash
|
||||
pip install terraform-local
|
||||
```
|
||||
|
||||
```tflocal``` takes care of automatically configuring the local service endpoints, which allows you to easily deploy your unmodified Terraform scripts against LocalStack. Otherwise you must declare ```aws``` provider like that:
|
||||
|
||||
```tf
|
||||
provider "aws" {
|
||||
access_key = "test"
|
||||
secret_key = "test"
|
||||
region = "us-east-1"
|
||||
s3_use_path_style = false
|
||||
skip_credentials_validation = true
|
||||
skip_metadata_api_check = true
|
||||
skip_requesting_account_id = true
|
||||
|
||||
endpoints {
|
||||
apigateway = "http://localhost:4566"
|
||||
apigatewayv2 = "http://localhost:4566"
|
||||
cloudformation = "http://localhost:4566"
|
||||
cloudwatch = "http://localhost:4566"
|
||||
dynamodb = "http://localhost:4566"
|
||||
ec2 = "http://localhost:4566"
|
||||
es = "http://localhost:4566"
|
||||
elasticache = "http://localhost:4566"
|
||||
firehose = "http://localhost:4566"
|
||||
iam = "http://localhost:4566"
|
||||
kinesis = "http://localhost:4566"
|
||||
lambda = "http://localhost:4566"
|
||||
rds = "http://localhost:4566"
|
||||
redshift = "http://localhost:4566"
|
||||
route53 = "http://localhost:4566"
|
||||
s3 = "http://s3.localhost.localstack.cloud:4566"
|
||||
secretsmanager = "http://localhost:4566"
|
||||
ses = "http://localhost:4566"
|
||||
sns = "http://localhost:4566"
|
||||
sqs = "http://localhost:4566"
|
||||
ssm = "http://localhost:4566"
|
||||
stepfunctions = "http://localhost:4566"
|
||||
sts = "http://localhost:4566"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
more information on: https://docs.localstack.cloud/user-guide/integrations/terraform/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue