This repo shows an example of using vscode tasks (.vscode/tasks.json) and localstack (terraform/python). I did this cause I wanted to use both of them in a project. Tis pretty cool stuffs
Requirements: - python3 - docker
git clone [email protected]:neilfarmer/localstack-demo.git
But if that doesnt work:
pip install --upgrade pip poetry; poetry install
But if that doesnt work:
poetry run localstack start -d; poetry run localstack status services; poetry run localstack status
This will build localstack in docker and provide its status
But if that doesnt work:
poetry install; poetry run python localstack-python/s3_test.py
poetry install; poetry run tflocal init; poetry run tflocal -chdir=localstack-terraform apply -auto-approve
You can see the API calls for this apply in localstack via the localstack-logs
task
poetry run localstack logs
But if that doesnt work:
poetry install; poetry run tflocal -chdir=localstack-terraform init; poetry run tflocal -chdir=localstack-terraform plan
Then run the run-terraform-apply
task
poetry install; poetry run tflocal init; poetry run tflocal -chdir=localstack-terraform apply -auto-approve
You can see the API calls for this apply in localstack via the localstack-logs
task
But if that doesnt work:
poetry run localstack logs
Run the task teardown-localstack
But if that doesnt work:
poetry run localstack stop
Yer done brah...