Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

53 lines
1.1 KiB
Plaintext

include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Sensitive Code Example
For https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html[AWS::SQS::Queue]:
[source,yaml]
----
AWSTemplateFormatVersion: '2010-09-09'
Resources:
Queue: # Sensitive, encryption disabled by default
Type: AWS::SQS::Queue
Properties:
DisplayName: "unencrypted_queue"
----
== Compliant Solution
For https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html[AWS::SQS::Queue]:
[source,yaml]
----
AWSTemplateFormatVersion: '2010-09-09'
Resources:
Queue:
Type: AWS::SQS::Queue
Properties:
DisplayName: "encrypted_queue"
KmsMasterKeyId:
Fn::GetAtt:
- TestKey
- KeyId
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
* Omitting "KmsMasterKeyId" disables SQS queues encryption. Make sure it is safe here.
endif::env-github,rspecator-view[]