[{"data":1,"prerenderedAt":955},["ShallowReactive",2],{"navigation_docs":3,"-guides-ci-cd-aws-codebuild":365,"-guides-ci-cd-aws-codebuild-surround":950},[4,215,267],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":21},"Documentation","i-lucide-book-open","\u002Fdocs","1.docs",[10,15,19,45,87,104,125,159,210],{"title":11,"path":12,"stem":13,"icon":14},"Welcome","\u002Fdocs\u002Fwelcome","1.docs\u002F1.welcome","i-lucide-house",{"title":16,"path":17,"stem":18},"Quick Start","\u002Fdocs\u002Fquickstart","1.docs\u002F2.quickstart",{"title":20,"icon":21,"path":22,"stem":23,"children":24,"page":21},"Auth Methods",false,"\u002Fdocs\u002Fauth","1.docs\u002F3.auth",[25,29,33,37,41],{"title":26,"path":27,"stem":28},"Overview","\u002Fdocs\u002Fauth\u002Foverview","1.docs\u002F3.auth\u002F1.overview",{"title":30,"path":31,"stem":32},"Google","\u002Fdocs\u002Fauth\u002Fgoogle","1.docs\u002F3.auth\u002F2.google",{"title":34,"path":35,"stem":36},"Microsoft","\u002Fdocs\u002Fauth\u002Fmicrosoft","1.docs\u002F3.auth\u002F3.microsoft",{"title":38,"path":39,"stem":40},"Github","\u002Fdocs\u002Fauth\u002Fgithub","1.docs\u002F3.auth\u002F4.github",{"title":42,"path":43,"stem":44},"Personal Access Tokens","\u002Fdocs\u002Fauth\u002Fuser-tokens","1.docs\u002F3.auth\u002F5.user-tokens",{"title":46,"icon":21,"path":47,"stem":48,"children":49,"page":21},"Organizations","\u002Fdocs\u002Forganization","1.docs\u002F4.organization",[50,54,58,62,66,70,74],{"title":51,"path":52,"stem":53},"Organization Overview","\u002Fdocs\u002Forganization\u002Foverview","1.docs\u002F4.organization\u002F1.overview",{"title":55,"path":56,"stem":57},"Create Organization","\u002Fdocs\u002Forganization\u002Fcreate","1.docs\u002F4.organization\u002F2.create",{"title":59,"path":60,"stem":61},"Billing","\u002Fdocs\u002Forganization\u002Fbilling","1.docs\u002F4.organization\u002F3.billing",{"title":63,"path":64,"stem":65},"Organization permissions","\u002Fdocs\u002Forganization\u002Fpermissions","1.docs\u002F4.organization\u002F4.permissions",{"title":67,"path":68,"stem":69},"Organization users","\u002Fdocs\u002Forganization\u002Fusers","1.docs\u002F4.organization\u002F5.users",{"title":71,"path":72,"stem":73},"Organization security","\u002Fdocs\u002Forganization\u002Fsecurity","1.docs\u002F4.organization\u002F6.security",{"title":75,"icon":21,"path":76,"stem":77,"children":78,"page":21},"Audit","\u002Fdocs\u002Forganization\u002Faudit","1.docs\u002F4.organization\u002F7.audit",[79,83],{"title":80,"path":81,"stem":82},"Audit Logs","\u002Fdocs\u002Forganization\u002Faudit\u002Flogs","1.docs\u002F4.organization\u002F7.audit\u002F1.logs",{"title":84,"path":85,"stem":86},"Audit Notifications","\u002Fdocs\u002Forganization\u002Faudit\u002Fnotifications","1.docs\u002F4.organization\u002F7.audit\u002F2.notifications",{"title":88,"icon":21,"path":89,"stem":90,"children":91,"page":21},"Workspaces","\u002Fdocs\u002Fworkspaces","1.docs\u002F5.workspaces",[92,96,100],{"title":93,"path":94,"stem":95},"Workspace Overview","\u002Fdocs\u002Fworkspaces\u002Foverview","1.docs\u002F5.workspaces\u002F1.overview",{"title":97,"path":98,"stem":99},"Create Workspace","\u002Fdocs\u002Fworkspaces\u002Fcreate","1.docs\u002F5.workspaces\u002F2.create",{"title":101,"path":102,"stem":103},"Workspace permissions","\u002Fdocs\u002Fworkspaces\u002Fpermissions","1.docs\u002F5.workspaces\u002F3.permissions",{"title":105,"icon":21,"path":106,"stem":107,"children":108,"page":21},"Kubernetes Agent","\u002Fdocs\u002Fagents","1.docs\u002F6.agents",[109,113,117,121],{"title":110,"path":111,"stem":112},"Agents Overview","\u002Fdocs\u002Fagents\u002Foverview","1.docs\u002F6.agents\u002F1.overview",{"title":114,"path":115,"stem":116},"Agents Deployment","\u002Fdocs\u002Fagents\u002Fdeployment","1.docs\u002F6.agents\u002F2.deployment",{"title":118,"path":119,"stem":120},"AWS Marketplace","\u002Fdocs\u002Fagents\u002Faws-marketplace","1.docs\u002F6.agents\u002F3.aws-marketplace",{"title":122,"path":123,"stem":124},"Agents Security","\u002Fdocs\u002Fagents\u002Fsecurity","1.docs\u002F6.agents\u002F4.security",{"title":126,"icon":21,"path":127,"stem":128,"children":129,"page":21},"Secrets","\u002Fdocs\u002Fsecrets","1.docs\u002F7.secrets",[130,134,138,142,146],{"title":131,"path":132,"stem":133},"Secret Overview","\u002Fdocs\u002Fsecrets\u002Foverview","1.docs\u002F7.secrets\u002F1.overview",{"title":135,"path":136,"stem":137},"Secret Types","\u002Fdocs\u002Fsecrets\u002Ftypes","1.docs\u002F7.secrets\u002F2.types",{"title":139,"path":140,"stem":141},"Secret Versions","\u002Fdocs\u002Fsecrets\u002Fversions","1.docs\u002F7.secrets\u002F3.versions",{"title":143,"path":144,"stem":145},"Two-Factor codes","\u002Fdocs\u002Fsecrets\u002Ftwo-factor","1.docs\u002F7.secrets\u002F4.two-factor",{"title":147,"icon":21,"path":148,"stem":149,"children":150,"page":21},"One-time share","\u002Fdocs\u002Fsecrets\u002Fonetime","1.docs\u002F7.secrets\u002F5.onetime",[151,155],{"title":152,"path":153,"stem":154},"Secret Version","\u002Fdocs\u002Fsecrets\u002Fonetime\u002Fversion","1.docs\u002F7.secrets\u002F5.onetime\u002F1.version",{"title":156,"path":157,"stem":158},"Custom note","\u002Fdocs\u002Fsecrets\u002Fonetime\u002Fcustom","1.docs\u002F7.secrets\u002F5.onetime\u002F2.custom",{"title":160,"icon":21,"path":161,"stem":162,"children":163,"page":21},"Integrations","\u002Fdocs\u002Fintegration","1.docs\u002F8.integration",[164,167,180,193],{"title":26,"path":165,"stem":166},"\u002Fdocs\u002Fintegration\u002Foverview","1.docs\u002F8.integration\u002F1.overview",{"title":168,"icon":21,"path":169,"stem":170,"children":171,"page":21},"Notifications","\u002Fdocs\u002Fintegration\u002Fnotification","1.docs\u002F8.integration\u002F2.notification",[172,176],{"title":173,"path":174,"stem":175},"Slack","\u002Fdocs\u002Fintegration\u002Fnotification\u002Fslack","1.docs\u002F8.integration\u002F2.notification\u002F1.slack",{"title":177,"path":178,"stem":179},"Telegram","\u002Fdocs\u002Fintegration\u002Fnotification\u002Ftelegram","1.docs\u002F8.integration\u002F2.notification\u002F2.telegram",{"title":181,"icon":21,"path":182,"stem":183,"children":184,"page":21},"Connections","\u002Fdocs\u002Fintegration\u002Fconnections","1.docs\u002F8.integration\u002F3.connections",[185,189],{"title":186,"path":187,"stem":188},"GCP Connection","\u002Fdocs\u002Fintegration\u002Fconnections\u002Fgcp","1.docs\u002F8.integration\u002F3.connections\u002F1.gcp",{"title":190,"path":191,"stem":192},"AWS Connection","\u002Fdocs\u002Fintegration\u002Fconnections\u002Faws","1.docs\u002F8.integration\u002F3.connections\u002F2.aws",{"title":194,"icon":21,"path":195,"stem":196,"children":197,"page":21},"KMS (Key Management System)","\u002Fdocs\u002Fintegration\u002Fkms","1.docs\u002F8.integration\u002F4.kms",[198,202,206],{"title":199,"path":200,"stem":201},"KMS Overview","\u002Fdocs\u002Fintegration\u002Fkms\u002Foverview","1.docs\u002F8.integration\u002F4.kms\u002F1.overview",{"title":203,"path":204,"stem":205},"GCP KMS","\u002Fdocs\u002Fintegration\u002Fkms\u002Fgcp","1.docs\u002F8.integration\u002F4.kms\u002F2.gcp",{"title":207,"path":208,"stem":209},"AWS KMS","\u002Fdocs\u002Fintegration\u002Fkms\u002Faws","1.docs\u002F8.integration\u002F4.kms\u002F3.aws",{"title":211,"path":212,"stem":213,"icon":214},"Security","\u002Fdocs\u002Fsecurity","1.docs\u002F9.security","i-lucide-shield-check",{"title":216,"icon":217,"path":218,"stem":219,"children":220,"page":21},"CLI Reference","i-lucide-terminal","\u002Fcli","2.cli",[221,224,228],{"title":26,"path":222,"stem":223},"\u002Fcli\u002Foverview","2.cli\u002F1.overview",{"title":225,"path":226,"stem":227},"Quickstart","\u002Fcli\u002Fquickstart","2.cli\u002F2.quickstart",{"title":229,"icon":21,"path":230,"stem":231,"children":232,"page":21},"Commands","\u002Fcli\u002Fcommands","2.cli\u002F3.commands",[233,237,241,259,263],{"title":234,"path":235,"stem":236},"ennote auth","\u002Fcli\u002Fcommands\u002Fauth","2.cli\u002F3.commands\u002F1.auth",{"title":238,"path":239,"stem":240},"ennote config","\u002Fcli\u002Fcommands\u002Fconfig","2.cli\u002F3.commands\u002F2.config",{"title":242,"path":243,"stem":244,"children":245,"icon":21},"ennote secret","\u002Fcli\u002Fcommands\u002Fsecret","2.cli\u002F3.commands\u002F3.secret\u002F1.index",[246,247,251,255],{"title":26,"path":243,"stem":244},{"title":248,"path":249,"stem":250},"create","\u002Fcli\u002Fcommands\u002Fsecret\u002Fcreate","2.cli\u002F3.commands\u002F3.secret\u002F2.create",{"title":252,"path":253,"stem":254},"get","\u002Fcli\u002Fcommands\u002Fsecret\u002Fget","2.cli\u002F3.commands\u002F3.secret\u002F3.get",{"title":256,"path":257,"stem":258},"import","\u002Fcli\u002Fcommands\u002Fsecret\u002Fimport","2.cli\u002F3.commands\u002F3.secret\u002F4.import",{"title":260,"path":261,"stem":262},"ennote share","\u002Fcli\u002Fcommands\u002Fshare","2.cli\u002F3.commands\u002F4.share",{"title":264,"path":265,"stem":266},"ennote version","\u002Fcli\u002Fcommands\u002Fversion","2.cli\u002F3.commands\u002F5.version",{"title":268,"icon":269,"path":270,"stem":271,"children":272,"page":21},"Guides","i-lucide-compass","\u002Fguides","3.guides",[273,276,308,352,361],{"title":26,"path":274,"stem":275},"\u002Fguides\u002Foverview","3.guides\u002F1.overview",{"title":277,"icon":21,"path":278,"stem":279,"children":280,"page":21},"Local Development","\u002Fguides\u002Flocal-development","3.guides\u002F2.local-development",[281,284,288,292,296,300,304],{"title":26,"path":282,"stem":283},"\u002Fguides\u002Flocal-development\u002Foverview","3.guides\u002F2.local-development\u002F1.overview",{"title":285,"path":286,"stem":287},"JavaScript & TypeScript","\u002Fguides\u002Flocal-development\u002Fjavascript","3.guides\u002F2.local-development\u002F2.javascript",{"title":289,"path":290,"stem":291},"Python","\u002Fguides\u002Flocal-development\u002Fpython","3.guides\u002F2.local-development\u002F3.python",{"title":293,"path":294,"stem":295},"Go","\u002Fguides\u002Flocal-development\u002Fgo","3.guides\u002F2.local-development\u002F4.go",{"title":297,"path":298,"stem":299},"Java & Kotlin","\u002Fguides\u002Flocal-development\u002Fjava","3.guides\u002F2.local-development\u002F5.java",{"title":301,"path":302,"stem":303},"PHP","\u002Fguides\u002Flocal-development\u002Fphp","3.guides\u002F2.local-development\u002F6.php",{"title":305,"path":306,"stem":307},"Ruby, .NET and Rust","\u002Fguides\u002Flocal-development\u002Fmore-languages","3.guides\u002F2.local-development\u002F7.more-languages",{"title":309,"icon":21,"path":310,"stem":311,"children":312,"page":21},"CI\u002FCD","\u002Fguides\u002Fci-cd","3.guides\u002F3.ci-cd",[313,316,320,324,328,332,336,340,344,348],{"title":26,"path":314,"stem":315},"\u002Fguides\u002Fci-cd\u002Foverview","3.guides\u002F3.ci-cd\u002F01.overview",{"title":317,"path":318,"stem":319},"GitHub Actions","\u002Fguides\u002Fci-cd\u002Fgithub-actions","3.guides\u002F3.ci-cd\u002F02.github-actions",{"title":321,"path":322,"stem":323},"GitLab CI\u002FCD","\u002Fguides\u002Fci-cd\u002Fgitlab-ci","3.guides\u002F3.ci-cd\u002F03.gitlab-ci",{"title":325,"path":326,"stem":327},"Jenkins","\u002Fguides\u002Fci-cd\u002Fjenkins","3.guides\u002F3.ci-cd\u002F04.jenkins",{"title":329,"path":330,"stem":331},"Azure DevOps","\u002Fguides\u002Fci-cd\u002Fazure-devops","3.guides\u002F3.ci-cd\u002F05.azure-devops",{"title":333,"path":334,"stem":335},"Bitbucket Pipelines","\u002Fguides\u002Fci-cd\u002Fbitbucket","3.guides\u002F3.ci-cd\u002F06.bitbucket",{"title":337,"path":338,"stem":339},"CircleCI","\u002Fguides\u002Fci-cd\u002Fcircleci","3.guides\u002F3.ci-cd\u002F07.circleci",{"title":341,"path":342,"stem":343},"TeamCity","\u002Fguides\u002Fci-cd\u002Fteamcity","3.guides\u002F3.ci-cd\u002F08.teamcity",{"title":345,"path":346,"stem":347},"AWS CodeBuild","\u002Fguides\u002Fci-cd\u002Faws-codebuild","3.guides\u002F3.ci-cd\u002F09.aws-codebuild",{"title":349,"path":350,"stem":351},"Google Cloud Build","\u002Fguides\u002Fci-cd\u002Fgoogle-cloud-build","3.guides\u002F3.ci-cd\u002F10.google-cloud-build",{"title":353,"icon":21,"path":354,"stem":355,"children":356,"page":21},"Containers","\u002Fguides\u002Fcontainers","3.guides\u002F4.containers",[357],{"title":358,"path":359,"stem":360},"Docker","\u002Fguides\u002Fcontainers\u002Fdocker","3.guides\u002F4.containers\u002F1.docker",{"title":362,"path":363,"stem":364},"Import from other managers","\u002Fguides\u002Fimport","3.guides\u002F5.import",{"id":366,"title":367,"body":368,"description":941,"extension":942,"links":943,"meta":944,"navigation":945,"path":346,"seo":946,"stem":347,"__hash__":949},"docs\u002F3.guides\u002F3.ci-cd\u002F09.aws-codebuild.md","AWS CodeBuild and CodePipeline",{"type":369,"value":370,"toc":928},"minimark",[371,376,402,406,413,417,420,476,484,488,491,628,639,643,802,824,828,832,838,873,877,882,904,912,921,924],[372,373,375],"h2",{"id":374},"how-it-works","How it works",[377,378,379,380,384,385,388,389,392,393,396,397,401],"p",{},"The Ennote token is kept in AWS Secrets Manager. CodeBuild loads it into ",[381,382,383],"code",{},"ENNOTE_TOKEN"," through the ",[381,386,387],{},"secrets-manager"," section of ",[381,390,391],{},"buildspec.yml",", installs the Ennote CLI, and ",[381,394,395],{},"ennote secret get \u003Csecret> -- \u003Ccommand>"," runs your commands with the keys of the secret as environment variables. CodePipeline runs the same CodeBuild project in its Build or Deploy stage. See the ",[398,399,400],"a",{"href":314},"CI\u002FCD overview"," for the common setup.",[372,403,405],{"id":404},"_1-create-a-token","1. Create a token",[377,407,408,409,412],{},"Create a ",[398,410,411],{"href":43},"Personal Access Token"," with an expiration, and copy it.",[372,414,416],{"id":415},"_2-store-it-in-aws-secrets-manager","2. Store it in AWS Secrets Manager",[377,418,419],{},"Store the token as a plain-text secret, in the same Region as your CodeBuild project:",[421,422,427],"pre",{"className":423,"code":424,"language":425,"meta":426,"style":426},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","aws secretsmanager create-secret \\\n  --name ennote\u002Fci-token \\\n  --secret-string \"\u003CYOUR_ENNOTE_TOKEN>\"\n","bash","",[381,428,429,449,460],{"__ignoreMap":426},[430,431,434,438,442,445],"span",{"class":432,"line":433},"line",1,[430,435,437],{"class":436},"sBMFI","aws",[430,439,441],{"class":440},"sfazB"," secretsmanager",[430,443,444],{"class":440}," create-secret",[430,446,448],{"class":447},"sTEyZ"," \\\n",[430,450,452,455,458],{"class":432,"line":451},2,[430,453,454],{"class":440},"  --name",[430,456,457],{"class":440}," ennote\u002Fci-token",[430,459,448],{"class":447},[430,461,463,466,470,473],{"class":432,"line":462},3,[430,464,465],{"class":440},"  --secret-string",[430,467,469],{"class":468},"sMK4o"," \"",[430,471,472],{"class":440},"\u003CYOUR_ENNOTE_TOKEN>",[430,474,475],{"class":468},"\"\n",[377,477,478,479,483],{},"Typing the token on the command line leaves it in your shell history. You can create the secret in the AWS Console instead: ",[480,481,482],"strong",{},"Secrets Manager → Store a new secret → Other type of secret → Plaintext",".",[372,485,487],{"id":486},"_3-allow-codebuild-to-read-it","3. Allow CodeBuild to read it",[377,489,490],{},"Add this policy to the CodeBuild project's service role. Replace the ARN with your secret's ARN:",[421,492,496],{"className":493,"code":494,"language":495,"meta":426,"style":426},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": \"secretsmanager:GetSecretValue\",\n      \"Resource\": \"arn:aws:secretsmanager:\u003Cregion>:\u003Caccount-id>:secret:ennote\u002Fci-token-*\"\n    }\n  ]\n}\n","json",[381,497,498,503,528,542,548,570,591,610,616,622],{"__ignoreMap":426},[430,499,500],{"class":432,"line":433},[430,501,502],{"class":468},"{\n",[430,504,505,508,512,515,518,520,523,525],{"class":432,"line":451},[430,506,507],{"class":468},"  \"",[430,509,511],{"class":510},"spNyl","Version",[430,513,514],{"class":468},"\"",[430,516,517],{"class":468},":",[430,519,469],{"class":468},[430,521,522],{"class":440},"2012-10-17",[430,524,514],{"class":468},[430,526,527],{"class":468},",\n",[430,529,530,532,535,537,539],{"class":432,"line":462},[430,531,507],{"class":468},[430,533,534],{"class":510},"Statement",[430,536,514],{"class":468},[430,538,517],{"class":468},[430,540,541],{"class":468}," [\n",[430,543,545],{"class":432,"line":544},4,[430,546,547],{"class":468},"    {\n",[430,549,551,554,557,559,561,563,566,568],{"class":432,"line":550},5,[430,552,553],{"class":468},"      \"",[430,555,556],{"class":436},"Effect",[430,558,514],{"class":468},[430,560,517],{"class":468},[430,562,469],{"class":468},[430,564,565],{"class":440},"Allow",[430,567,514],{"class":468},[430,569,527],{"class":468},[430,571,573,575,578,580,582,584,587,589],{"class":432,"line":572},6,[430,574,553],{"class":468},[430,576,577],{"class":436},"Action",[430,579,514],{"class":468},[430,581,517],{"class":468},[430,583,469],{"class":468},[430,585,586],{"class":440},"secretsmanager:GetSecretValue",[430,588,514],{"class":468},[430,590,527],{"class":468},[430,592,594,596,599,601,603,605,608],{"class":432,"line":593},7,[430,595,553],{"class":468},[430,597,598],{"class":436},"Resource",[430,600,514],{"class":468},[430,602,517],{"class":468},[430,604,469],{"class":468},[430,606,607],{"class":440},"arn:aws:secretsmanager:\u003Cregion>:\u003Caccount-id>:secret:ennote\u002Fci-token-*",[430,609,475],{"class":468},[430,611,613],{"class":432,"line":612},8,[430,614,615],{"class":468},"    }\n",[430,617,619],{"class":432,"line":618},9,[430,620,621],{"class":468},"  ]\n",[430,623,625],{"class":432,"line":624},10,[430,626,627],{"class":468},"}\n",[377,629,630,631,634,635,638],{},"The ",[381,632,633],{},"-*"," at the end matches the random suffix that Secrets Manager adds to secret ARNs. If the secret is encrypted with a customer-managed KMS key, the role also needs ",[381,636,637],{},"kms:Decrypt"," on that key.",[372,640,642],{"id":641},"_4-add-the-buildspec","4. Add the buildspec",[421,644,648],{"className":645,"code":646,"filename":391,"language":647,"meta":426,"style":426},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","version: 0.2\n\nenv:\n  variables:\n    ENNOTE_ORGANIZATION_ID: org_123\n    ENNOTE_WORKSPACE_ID: wrk_prod\n    ENNOTE_DO_NOT_TRACK: \"1\"\n  secrets-manager:\n    ENNOTE_TOKEN: ennote\u002Fci-token\n\nphases:\n  install:\n    commands:\n      - curl -sSfL https:\u002F\u002Fget.ennote.io\u002Fget-cli.sh | sh\n  build:\n    commands:\n      - ennote secret get db-credentials -- npm run migrate\n      - ennote secret get aws-deploy -- .\u002Fdeploy.sh\n","yaml",[381,649,650,662,668,676,683,693,703,717,724,734,738,746,754,762,771,779,786,794],{"__ignoreMap":426},[430,651,652,656,658],{"class":432,"line":433},[430,653,655],{"class":654},"swJcz","version",[430,657,517],{"class":468},[430,659,661],{"class":660},"sbssI"," 0.2\n",[430,663,664],{"class":432,"line":451},[430,665,667],{"emptyLinePlaceholder":666},true,"\n",[430,669,670,673],{"class":432,"line":462},[430,671,672],{"class":654},"env",[430,674,675],{"class":468},":\n",[430,677,678,681],{"class":432,"line":544},[430,679,680],{"class":654},"  variables",[430,682,675],{"class":468},[430,684,685,688,690],{"class":432,"line":550},[430,686,687],{"class":654},"    ENNOTE_ORGANIZATION_ID",[430,689,517],{"class":468},[430,691,692],{"class":440}," org_123\n",[430,694,695,698,700],{"class":432,"line":572},[430,696,697],{"class":654},"    ENNOTE_WORKSPACE_ID",[430,699,517],{"class":468},[430,701,702],{"class":440}," wrk_prod\n",[430,704,705,708,710,712,715],{"class":432,"line":593},[430,706,707],{"class":654},"    ENNOTE_DO_NOT_TRACK",[430,709,517],{"class":468},[430,711,469],{"class":468},[430,713,714],{"class":440},"1",[430,716,475],{"class":468},[430,718,719,722],{"class":432,"line":612},[430,720,721],{"class":654},"  secrets-manager",[430,723,675],{"class":468},[430,725,726,729,731],{"class":432,"line":618},[430,727,728],{"class":654},"    ENNOTE_TOKEN",[430,730,517],{"class":468},[430,732,733],{"class":440}," ennote\u002Fci-token\n",[430,735,736],{"class":432,"line":624},[430,737,667],{"emptyLinePlaceholder":666},[430,739,741,744],{"class":432,"line":740},11,[430,742,743],{"class":654},"phases",[430,745,675],{"class":468},[430,747,749,752],{"class":432,"line":748},12,[430,750,751],{"class":654},"  install",[430,753,675],{"class":468},[430,755,757,760],{"class":432,"line":756},13,[430,758,759],{"class":654},"    commands",[430,761,675],{"class":468},[430,763,765,768],{"class":432,"line":764},14,[430,766,767],{"class":468},"      -",[430,769,770],{"class":440}," curl -sSfL https:\u002F\u002Fget.ennote.io\u002Fget-cli.sh | sh\n",[430,772,774,777],{"class":432,"line":773},15,[430,775,776],{"class":654},"  build",[430,778,675],{"class":468},[430,780,782,784],{"class":432,"line":781},16,[430,783,759],{"class":654},[430,785,675],{"class":468},[430,787,789,791],{"class":432,"line":788},17,[430,790,767],{"class":468},[430,792,793],{"class":440}," ennote secret get db-credentials -- npm run migrate\n",[430,795,797,799],{"class":432,"line":796},18,[430,798,767],{"class":468},[430,800,801],{"class":440}," ennote secret get aws-deploy -- .\u002Fdeploy.sh\n",[377,803,804,805,808,809,808,812,815,816,819,820,823],{},"Replace ",[381,806,807],{},"org_123",", ",[381,810,811],{},"wrk_prod",[381,813,814],{},"db-credentials"," and ",[381,817,818],{},"aws-deploy"," with your organization ID, workspace ID and secret names. CodeBuild's managed images run as root and include ",[381,821,822],{},"curl",", so the install script works as is. CodeBuild masks values loaded from Secrets Manager in build logs.",[825,826,827],"note",{},"For AWS access inside the build, prefer the CodeBuild service role over AWS keys stored in Ennote. Use Ennote for credentials that AWS IAM does not cover: database passwords, third-party API keys, signing keys.",[372,829,831],{"id":830},"using-it-in-codepipeline","Using It in CodePipeline",[377,833,834,835,837],{},"CodePipeline does not run commands itself. It runs the CodeBuild project, which uses the ",[381,836,391],{}," above:",[839,840,841,853,859],"ol",{},[842,843,844,845,848,849,852],"li",{},"In your pipeline, add or edit a ",[480,846,847],{},"Build"," (or ",[480,850,851],{},"Deploy",") stage.",[842,854,855,856,858],{},"Choose ",[480,857,345],{}," as the action provider and select the project.",[842,860,861,862,865,866,815,869,872],{},"To deploy the same project to several environments, add one action per stage and set ",[480,863,864],{},"Environment variables"," on each action, for example ",[381,867,868],{},"ENNOTE_WORKSPACE_ID=wrk_staging",[381,870,871],{},"ENNOTE_WORKSPACE_ID=wrk_prod",". Action variables override the values in the buildspec.",[372,874,876],{"id":875},"faq","FAQ",[878,879,881],"h3",{"id":880},"can-i-use-parameter-store-instead-of-secrets-manager","Can I use Parameter Store instead of Secrets Manager?",[377,883,884,885,888,889,892,893,896,897,900,901,903],{},"Yes. Store the token as a ",[381,886,887],{},"SecureString"," parameter, give the service role ",[381,890,891],{},"ssm:GetParameters"," on it, and load it with ",[381,894,895],{},"parameter-store:"," instead of ",[381,898,899],{},"secrets-manager:"," in the ",[381,902,672],{}," section.",[878,905,907,908,911],{"id":906},"do-i-need-ennote-auth-login","Do I need ",[381,909,910],{},"ennote auth login","?",[377,913,914,915,917,918,920],{},"No. With ",[381,916,383],{}," set, the CLI authenticates headlessly (",[398,919,234],{"href":235},").",[922,923],"need-help",{},[925,926,927],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":426,"searchDepth":451,"depth":451,"links":929},[930,931,932,933,934,935,936],{"id":374,"depth":451,"text":375},{"id":404,"depth":451,"text":405},{"id":415,"depth":451,"text":416},{"id":486,"depth":451,"text":487},{"id":641,"depth":451,"text":642},{"id":830,"depth":451,"text":831},{"id":875,"depth":451,"text":876,"children":937},[938,939],{"id":880,"depth":462,"text":881},{"id":906,"depth":462,"text":940},"Do I need ennote auth login?","Use Ennote secrets in AWS CodeBuild and CodePipeline: keep the Ennote token in AWS Secrets Manager, load it in buildspec.yml, install the Ennote CLI and inject secrets into build and deploy commands with ennote secret get.","md",null,{},{"title":345},{"title":947,"description":948},"Use Ennote Secrets in AWS CodeBuild and CodePipeline","Store an Ennote token in AWS Secrets Manager, load it in buildspec.yml as ENNOTE_TOKEN and inject Ennote secrets into CodeBuild and CodePipeline builds.","TYouLwn68hPzqpJjet0TLca6AOkcX21ArrQ4SwrHEmA",[951,953],{"title":341,"path":342,"stem":343,"description":952,"children":-1},"Use Ennote secrets in TeamCity: store an Ennote token as a password parameter exposed as an environment variable, and inject secrets into build steps with ennote secret get.",{"title":349,"path":350,"stem":351,"description":954,"children":-1},"Use Ennote secrets in Google Cloud Build: keep the Ennote token in Google Secret Manager, expose it to build steps with availableSecrets and secretEnv, and inject secrets with ennote secret get.",1796188904241]