1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
1
I solved this problem by adding Cluster property to ECS service resource. Since I didn't specify the property, the default cluster was assumed. I changed the template to
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"ECSCluster": {
"Type": "AWS::ECS::Cluster",
"DeletionPolicy": "Delete"
},
"ECSTaskDefinition": {
"Type": "AWS::ECS::TaskDefinition",
"DeletionPolicy": "Retain"
},
"ECSService": {
"Type": "AWS::ECS::Service",
"DeletionPolicy": "Delete"
"Properties": {
"Cluster": "MyECSCluster"
}
}
}
}
and now import is working properly.
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Monaten
- Wie kann ich verhindern, dass sich mein Amazon ECS-Service in AWS CloudFormation nicht stabilisiert?AWS OFFICIALAktualisiert vor 3 Jahren
But adding "Cluster" key triggers a replacement.