Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/s3_bucket_object_lock_configuration: remove indentation of code blocks in ordered list #23779

Merged
merged 1 commit into from
Mar 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 28 additions & 24 deletions website/docs/r/s3_bucket_object_lock_configuration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,41 @@ This is a multistep process that requires AWS Support intervention.
1. Enable versioning on your S3 bucket, if you have not already done so.
Doing so will generate an "Object Lock token" in the back-end.

```terraform
resource "aws_s3_bucket" "example" {
bucket = "mybucket"
}
<!-- markdownlint-disable MD029 -->
```terraform
resource "aws_s3_bucket" "example" {
bucket = "mybucket"
}

resource "aws_s3_bucket_versioning" "example" {
bucket = aws_s3_bucket.example.bucket
resource "aws_s3_bucket_versioning" "example" {
bucket = aws_s3_bucket.example.bucket

versioning_configuration {
status = "Enabled"
}
}
```
versioning_configuration {
status = "Enabled"
}
}
```
<!-- markdownlint-disable MD029 -->

2. Contact AWS Support to provide you with the "Object Lock token" for the specified bucket and use the token (or token ID) within your new `aws_s3_bucket_object_lock_configuration` resource.
Notice the `object_lock_enabled` argument does not need to be specified as it defaults to `Enabled`.

```terraform
resource "aws_s3_bucket_object_lock_configuration" "example" {
bucket = aws_s3_bucket.example.bucket
Notice the `object_lock_enabled` argument does not need to be specified as it defaults to `Enabled`.

rule {
default_retention {
mode = "COMPLIANCE"
days = 5
}
}
<!-- markdownlint-disable MD029 -->
```terraform
resource "aws_s3_bucket_object_lock_configuration" "example" {
bucket = aws_s3_bucket.example.bucket

token = "NG2MKsfoLqV3A+aquXneSG4LOu/ekrlXkRXwIPFVfERT7XOPos+/k444d7RIH0E3W3p5QU6ml2exS2F/eYCFmMWHJ3hFZGk6al1sIJkmNhUMYmsv0jYVQyTTZNLM+DnfooA6SATt39mM1VW1yJh4E+XljMlWzaBwHKbss3/EjlGDjOmVhaSs4Z6427mMCaFD0RLwsYY7zX49gEc31YfOMJGxbXCXSeyNwAhhM/A8UH7gQf38RmjHjjAFbbbLtl8arsxTPW8F1IYohqwmKIr9DnotLLj8Tg44U2SPwujVaqmlKKP9s41rfgb4UbIm7khSafDBng0LGfxC4pMlT9Ny2w=="
rule {
default_retention {
mode = "COMPLIANCE"
days = 5
}
```
}

token = "NG2MKsfoLqV3A+aquXneSG4LOu/ekrlXkRXwIPFVfERT7XOPos+/k444d7RIH0E3W3p5QU6ml2exS2F/eYCFmMWHJ3hFZGk6al1sIJkmNhUMYmsv0jYVQyTTZNLM+DnfooA6SATt39mM1VW1yJh4E+XljMlWzaBwHKbss3/EjlGDjOmVhaSs4Z6427mMCaFD0RLwsYY7zX49gEc31YfOMJGxbXCXSeyNwAhhM/A8UH7gQf38RmjHjjAFbbbLtl8arsxTPW8F1IYohqwmKIr9DnotLLj8Tg44U2SPwujVaqmlKKP9s41rfgb4UbIm7khSafDBng0LGfxC4pMlT9Ny2w=="
}
```
<!-- markdownlint-disable MD029 -->

## Usage Notes

Expand Down