Codebuild Action Configurator 1000 Character limit

0

Is there a best practice workaround for the Codebuild Action Configurator 1000 Character limit? Ref: https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-variables.html. The customer has hit an obscure error with CodeBuild Action Configuration blocks for defining environment variables.

1 Antwort
0

Hi Kawhik,

Do you have some sample of such configuration?

In general CodePipeline actions are only meant to transport dynamic values from pipeline runtime. You can off-load as much static configuration as possible to CodeBuild project setup itself and just specify overrides in CodePipeline action (eg. define most environment variables in buildspec/project definition and then only pass extra values via pipeline).

Another way is (as usual in case of passing large chunks between AWS services) to upload some big results into S3 and then load them in CodeBuild project at run-time.

Also, if the limit is hit by just some margin you have to remember that it's literally about characters count - dropping whitespace characters can help you pack more.

But still - would be good to see example.

beantwortet vor 2 Jahren

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