Content of my file named /tmp/tmp.txt is
Allow
- 's3:GetObject'
arn:aws:s3::*:${dtddyuffjf}/*
Allow
- 'SQS:GetMessage'
${DocServiceQueue.Arn}
Allow
- ec2:CreateNetworkInterface
- ec2:DescribeNetworkInterfaces
- ec2:DeleteNetworkInterface
*
I am passing this to a variable like below
v1=
$(cat /tmp/tmp.txt)
echo $v1 showing
Allow
- 's3:GetObject' arn:aws:s3:::${dtddyuffjf}/ Allow
- 'SQS:GetMessage' ${DocServiceQueue.Arn} Allow
- ec2:CreateNetworkInterface
- ec2:DescribeNetworkInterfaces
- ec2:DeleteNetworkInterface and instead of the * , it's showing content of the folder It does not show *