Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Please ADD ALL Changes to the UNRELEASED SECTION and not a specific release
- Guard against IndexOutOfRangeException when Branches list is empty in GithubStatusNotificationHandler
- Fixed CS0433 ambiguous xunit type conflict in test projects caused by FunFair.Test.Common now depending on the AOT-flavoured xunit v3 packages, by switching test projects to the matching xunit.v3.aot.mtp-v2 runner package
- Added missing IncludeAssets on NuGet package references required by FunFair.BuildCheck
- Resolved cfn-lint W1030 warning on the TaskRoleArn CloudFormation property by only setting it when a TaskRole is provided
### Changed
- Dependencies - Updated NSubstitute.Analyzers.CSharp to 1.0.17
- Switched to use minimal APIs
Expand Down
24 changes: 23 additions & 1 deletion cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@
"Default": "arn:aws:secretsmanager:eu-west-1:117769150821:secret:BuildBot-ph1YIJ"
}
},
"Conditions": {
"HasTaskRole": {
"Fn::Not": [
{
"Fn::Equals": [
{
"Ref": "TaskRole"
},
""
]
}
]
}
},
"Metadata": {
"Application": {
"Ref": "ApplicationName"
Expand Down Expand Up @@ -279,7 +293,15 @@
"Ref": "TaskExecutionRole"
},
"TaskRoleArn": {
"Ref": "TaskRole"
"Fn::If": [
"HasTaskRole",
{
"Ref": "TaskRole"
},
{
"Ref": "AWS::NoValue"
}
]
},
"RequiresCompatibilities": ["FARGATE"],
"NetworkMode": "awsvpc",
Expand Down
Loading