1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
But adding "Cluster" key triggers a replacement.