Add sensitive attribute to resource with credentials

This commit is contained in:
Râu Cao 2024-10-16 12:21:38 +02:00
parent 752bb74663
commit 3551b71154
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -11,6 +11,7 @@ credentials = Chef::EncryptedDataBagItem.load('credentials', 'backup')
file "/root/.aws/config" do file "/root/.aws/config" do
mode "600" mode "600"
sensitive true
content lazy { <<-EOF content lazy { <<-EOF
[default] [default]
region = #{credentials["s3_region"]} region = #{credentials["s3_region"]}