Hello cool ppls! Anybody help me understand how t...
# general
s
Hello cool ppls! Anybody help me understand how to interpolate output values into a string? Something like this:
Copy code
podAssumeRolePolicyDocument = JsonConvert.SerializeObject(new
			{
				Version = "2012-10-17",
				Statement = new dynamic[]
				{
					new
					{
						Action = "sts:AssumeRole",
						Principal = new
						{
							Service = "<http://ec2.amazonaws.com|ec2.amazonaws.com>"
						},
						Effect = "Allow",
						Sid = ""
					},
					new
					{
						Sid = "",
						Effect = "Allow",
						Principal = new
						{
							AWS = Output.Create(eksNodeGroupRole).Apply(x => x.Arn.ToString())
						},
						Action = "sts:AssumeRole"
					}
				}
			});