taskdef.json how to specifiy an access point id?

0

In my taskdef.json I have a volume


  "volumes": [
    {
      "name": "tmp-files",
      "efsVolumeConfiguration": {
        "fileSystemId": "fs-0de0326ae8f3dd0b6",
        "transitEncryption": "ENABLED",
        "authorizationConfig": {
          "iam": "ENABLED"
        }
      }
    }
  ]

I need to specifiy an access point id, I have it, but cannot hard code it, because it's created, live, from cloud formation, before launch of code pipeline , but how to set here?

side question: where is a complte taskdef.json reference guide?

gefragt vor einem Monat73 Aufrufe
1 Antwort
0

You would need to add the accessPointId field within the efsVolumeConfiguration object.

  {

     "name": "tmp-files",

     "efsVolumeConfiguration": {

     "fileSystemId": "fs-0de0326ae8f3dd0b6",

     "transitEncryption": "ENABLED",

    "authorizationConfig": {

     "iam": "ENABLED"

   },

   "accessPointId": "your-access-point-id-here"

  }

  }

Regarding your side question about a complete taskdef.json reference guide, AWS provides detailed documentation on the taskDefinition JSON structure in the official documentation. Please check out this link: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/example_task_definitions.html

AWS
beantwortet vor einem Monat
  • The documentation is not a reference, only a list of examples.

    anyway, My problem is I have NOT a static accessPointId, becausae it's create at 'runtime' from cloud formation before cloud pipeline is started.

    So here I need to NOT hardcode an accessPointId.

    This problem rises becase file systems has not guid/uid , but AccessPoint has them. So we need an accessPoint to access a custom path on file system and then mount on a running ECS using right permissions and ownership

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen