Skip to content

thixpin/tf-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

export AWS_REGION=us-east-1
export S3_BUCKET_NAME=thixpin-tf-state-123
export DYNAMODB_TABLE_NAME=thixpin-tf-locks


aws s3api create-bucket --bucket ${S3_BUCKET_NAME} --region ${AWS_REGION} 


aws dynamodb create-table \
    --table-name ${DYNAMODB_TABLE_NAME} \
    --attribute-definitions AttributeName=LockID,AttributeType=S \
    --key-schema AttributeName=LockID,KeyType=HASH \
    --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \
    --region ${AWS_REGION}

    

# Clean up
aws s3 rm s3://${S3_BUCKET_NAME} --recursive
aws s3api delete-bucket --bucket ${S3_BUCKET_NAME} --region ${AWS_REGION}
aws dynamodb delete-table --table-name ${DYNAMODB_TABLE_NAME} --region ${AWS_REGION}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages