{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Root Stack for AWS Amplify CLI", "Parameters": { "DeploymentBucketName": { "Description": "Name of the common deployment bucket provided by the parent stack", "Type": "String", "Default": "DeploymentBucket" }, "AuthRoleName": { "Type": "String", "Default": "AuthRoleName" }, "UnauthRoleName": { "Type": "String", "Default": "UnauthRoleName" } }, "Resources": { "DeploymentBucket": { "Type": "AWS::S3::Bucket", "DeletionPolicy": "Retain", "Properties": { "BucketName": { "Ref": "DeploymentBucketName" } } }, "AuthRole": { "Type": "AWS::IAM::Role", "Properties": { "RoleName": { "Ref": "AuthRoleName" }, "AssumeRolePolicyDocument": { "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Deny", "Principal": { "Federated": "cognito-identity.amazonaws.com" }, "Action": "sts:AssumeRoleWithWebIdentity" } ] } } }, "UnauthRole": { "Type": "AWS::IAM::Role", "Properties": { "RoleName": { "Ref": "UnauthRoleName" }, "AssumeRolePolicyDocument": { "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Deny", "Principal": { "Federated": "cognito-identity.amazonaws.com" }, "Action": "sts:AssumeRoleWithWebIdentity" } ] } } }, "hostingamplifyhosting": { "Type": "AWS::CloudFormation::Stack", "Properties": { "TemplateURL": "https://s3.amazonaws.com/amplify-wavelengthlatency-test-154243-deployment/amplify-cfn-templates/hosting/amplifyhosting-template.json", "Parameters": { "appId": "d1wwe94lg3vevl", "type": "manual", "env": "test" } } } }, "Outputs": { "Region": { "Description": "CloudFormation provider root stack Region", "Value": { "Ref": "AWS::Region" }, "Export": { "Name": { "Fn::Sub": "${AWS::StackName}-Region" } } }, "StackName": { "Description": "CloudFormation provider root stack ID", "Value": { "Ref": "AWS::StackName" }, "Export": { "Name": { "Fn::Sub": "${AWS::StackName}-StackName" } } }, "StackId": { "Description": "CloudFormation provider root stack name", "Value": { "Ref": "AWS::StackId" }, "Export": { "Name": { "Fn::Sub": "${AWS::StackName}-StackId" } } }, "DeploymentBucketName": { "Description": "CloudFormation provider root stack deployment bucket name", "Value": { "Ref": "DeploymentBucketName" }, "Export": { "Name": { "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" } } }, "AuthRoleArn": { "Value": { "Fn::GetAtt": [ "AuthRole", "Arn" ] } }, "UnauthRoleArn": { "Value": { "Fn::GetAtt": [ "UnauthRole", "Arn" ] } }, "AuthRoleName": { "Value": { "Ref": "AuthRole" } }, "UnauthRoleName": { "Value": { "Ref": "UnauthRole" } } } }