diff --git a/builder/amazon/common/access_config.go b/builder/amazon/common/access_config.go
index d85911c2b..2be4cf3ef 100644
--- a/builder/amazon/common/access_config.go
+++ b/builder/amazon/common/access_config.go
@@ -116,8 +116,7 @@ type AccessConfig struct {
// credential types) and GetFederationToken (for federation\_token
// credential types) for more details.
//
- //
- //
+ // JSON example:
//
// ```json
// {
@@ -127,9 +126,9 @@ type AccessConfig struct {
// "ttl": "3600s"
// }
// }
+ // ```
//
- //
- //
+ // HCL2 example:
//
// ```hcl
// vault_aws_engine {
@@ -138,9 +137,6 @@ type AccessConfig struct {
// ttl = "3600s"
// }
// ```
- //
- //
- //
VaultAWSEngine VaultAWSEngineOptions `mapstructure:"vault_aws_engine" required:"false"`
getEC2Connection func() ec2iface.EC2API
diff --git a/website/pages/partials/builder/amazon/common/AccessConfig-not-required.mdx b/website/pages/partials/builder/amazon/common/AccessConfig-not-required.mdx
index 93ea549f1..3c0faabe7 100644
--- a/website/pages/partials/builder/amazon/common/AccessConfig-not-required.mdx
+++ b/website/pages/partials/builder/amazon/common/AccessConfig-not-required.mdx
@@ -60,8 +60,7 @@
credential types) and GetFederationToken (for federation\_token
credential types) for more details.
-
-
+ JSON example:
```json
{
@@ -71,9 +70,9 @@
"ttl": "3600s"
}
}
+ ```
-
-
+ HCL2 example:
```hcl
vault_aws_engine {
@@ -82,6 +81,3 @@
ttl = "3600s"
}
```
-
-
-