{"id":32528,"date":"2023-01-23T04:39:16","date_gmt":"2023-01-23T04:39:16","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=32528"},"modified":"2023-01-23T04:39:19","modified_gmt":"2023-01-23T04:39:19","slug":"how-to-set-security-credentials-in-a-aws-code-build","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-set-security-credentials-in-a-aws-code-build\/","title":{"rendered":"How to set Security Credentials in a AWS Code Build"},"content":{"rendered":"\n<p>To set security credentials in AWS CodeBuild, you can use the AWS CLI or the CodeBuild console.<\/p>\n\n\n\n<p>Using the AWS CLI:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Run the command <code>aws configure<\/code> to set up your credentials.<\/li>\n\n\n\n<li>Type in your AWS access key and secret key when prompted.<\/li>\n<\/ol>\n\n\n\n<p>Using the CodeBuild console:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the CodeBuild console and select the project you want to set the credentials for.<\/li>\n\n\n\n<li>Click on the &#8220;Edit&#8221; button in the &#8220;Environment&#8221; section.<\/li>\n\n\n\n<li>In the &#8220;Environment Variables&#8221; section, click on the &#8220;Add environment variable&#8221; button.<\/li>\n\n\n\n<li>In the &#8220;Name&#8221; field, enter &#8220;AWS_ACCESS_KEY_ID&#8221; and in the &#8220;Value&#8221; field, enter your access key.<\/li>\n\n\n\n<li>Click on the &#8220;Add environment variable&#8221; button again and enter &#8220;AWS_SECRET_ACCESS_KEY&#8221; in the &#8220;Name&#8221; field and your secret key in the &#8220;Value&#8221; field.<\/li>\n\n\n\n<li>Click on the &#8220;Save&#8221; button to save your changes.<\/li>\n<\/ol>\n\n\n\n<p>You can also use IAM roles to give CodeBuild access to other AWS resou<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To set security credentials in AWS CodeBuild, you can use the AWS CLI or the CodeBuild console. Using the AWS CLI: Using the CodeBuild console: You can also use IAM roles to give CodeBuild access to other AWS resou<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-32528","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=32528"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32528\/revisions"}],"predecessor-version":[{"id":32529,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32528\/revisions\/32529"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=32528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=32528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=32528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}