Skip to content

boukerramAhmed/aws-carpooling-terraform-deploy

Repository files navigation

aws s3 mb s3://terraform-state-user-management-infra --profile github-deploy --region us-east-1

# Activer le versioning
aws s3api put-bucket-versioning --bucket terraform-state-user-management-infra  --versioning-configuration Status=Enabled  --region us-east-1 --profile github-deploy


# Activer le chiffrement
aws s3api put-bucket-encryption  --region us-east-1 --profile github-deploy \
    --bucket votre-terraform-state-bucket-unique \
    --server-side-encryption-configuration '{
        "Rules": [
            {
                "ApplyServerSideEncryptionByDefault": {
                    "SSEAlgorithm": "AES256"
                }
            }
        ]
    }'


aws s3api put-bucket-encryption  --region us-east-1 --profile github-deploy \
    --bucket votre-terraform-state-bucket-unique \
    --server-side-encryption-configuration '{
        "Rules": [
            {
                "ApplyServerSideEncryptionByDefault": {
                    "SSEAlgorithm": "AES256"
                }
            }
        ]
    }'

aws dynamodb create-table  --table-name terraform-state-lock  --attribute-definitions AttributeName=LockID,AttributeType=S  --key-schema AttributeName=LockID,KeyType=HASH  --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --region us-east-1 --profile github-deploy


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages