From d468805a672082ec4c8593ff9dafd8c5554a6041 Mon Sep 17 00:00:00 2001 From: seebees Date: Fri, 4 Dec 2020 10:22:10 -0800 Subject: [PATCH] chore: Add AWS CodeBuild buildspec Adding buildspec to batch build multiple Python runtimes * Python 2.7 * Python 3.5 * Python 3.6 * Python 3.7 * Python 3.8 --- .gitignore | 1 + buildspec.yml | 59 +++++++++++++++++++++++++++++++++ codebuild/py27/awses_1.7.1.yml | 21 ++++++++++++ codebuild/py27/awses_2.0.0.yml | 21 ++++++++++++ codebuild/py27/awses_latest.yml | 21 ++++++++++++ codebuild/py27/examples.yml | 18 ++++++++++ codebuild/py27/integ.yml | 18 ++++++++++ codebuild/py35/awses_1.7.1.yml | 23 +++++++++++++ codebuild/py35/awses_2.0.0.yml | 23 +++++++++++++ codebuild/py35/awses_latest.yml | 23 +++++++++++++ codebuild/py35/examples.yml | 20 +++++++++++ codebuild/py35/integ.yml | 20 +++++++++++ codebuild/py36/awses_1.7.1.yml | 21 ++++++++++++ codebuild/py36/awses_2.0.0.yml | 21 ++++++++++++ codebuild/py36/awses_latest.yml | 21 ++++++++++++ codebuild/py36/examples.yml | 18 ++++++++++ codebuild/py36/integ.yml | 18 ++++++++++ codebuild/py37/awses_1.7.1.yml | 23 +++++++++++++ codebuild/py37/awses_2.0.0.yml | 23 +++++++++++++ codebuild/py37/awses_latest.yml | 23 +++++++++++++ codebuild/py37/examples.yml | 20 +++++++++++ codebuild/py37/integ.yml | 20 +++++++++++ codebuild/py38/awses_1.7.1.yml | 21 ++++++++++++ codebuild/py38/awses_2.0.0.yml | 21 ++++++++++++ codebuild/py38/awses_latest.yml | 21 ++++++++++++ codebuild/py38/examples.yml | 18 ++++++++++ codebuild/py38/integ.yml | 18 ++++++++++ decrypt_oracle/tox.ini | 2 ++ test_vector_handlers/tox.ini | 5 ++- tox.ini | 2 ++ 30 files changed, 583 insertions(+), 1 deletion(-) create mode 100644 buildspec.yml create mode 100644 codebuild/py27/awses_1.7.1.yml create mode 100644 codebuild/py27/awses_2.0.0.yml create mode 100644 codebuild/py27/awses_latest.yml create mode 100644 codebuild/py27/examples.yml create mode 100644 codebuild/py27/integ.yml create mode 100644 codebuild/py35/awses_1.7.1.yml create mode 100644 codebuild/py35/awses_2.0.0.yml create mode 100644 codebuild/py35/awses_latest.yml create mode 100644 codebuild/py35/examples.yml create mode 100644 codebuild/py35/integ.yml create mode 100644 codebuild/py36/awses_1.7.1.yml create mode 100644 codebuild/py36/awses_2.0.0.yml create mode 100644 codebuild/py36/awses_latest.yml create mode 100644 codebuild/py36/examples.yml create mode 100644 codebuild/py36/integ.yml create mode 100644 codebuild/py37/awses_1.7.1.yml create mode 100644 codebuild/py37/awses_2.0.0.yml create mode 100644 codebuild/py37/awses_latest.yml create mode 100644 codebuild/py37/examples.yml create mode 100644 codebuild/py37/integ.yml create mode 100644 codebuild/py38/awses_1.7.1.yml create mode 100644 codebuild/py38/awses_2.0.0.yml create mode 100644 codebuild/py38/awses_latest.yml create mode 100644 codebuild/py38/examples.yml create mode 100644 codebuild/py38/integ.yml diff --git a/.gitignore b/.gitignore index 6a18f3190..63097dcba 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ venv/ # Chalice */.chalice/deployments */.chalice/venv +/.history diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 000000000..e31d4f845 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,59 @@ +version: 0.2 + +batch: + fast-fail: false + build-list: + - identifier: py27_integ + buildspec: codebuild/py27/integ.yml + - identifier: py27_examples + buildspec: codebuild/py27/examples.yml + - identifier: py27_awses_1_7_1 + buildspec: codebuild/py27/awses_1.7.1.yml + - identifier: py27_awses_2_0_0 + buildspec: codebuild/py27/awses_2.0.0.yml + - identifier: py27_awses_latest + buildspec: codebuild/py27/awses_latest.yml + + - identifier: py35_integ + buildspec: codebuild/py35/integ.yml + - identifier: py35_examples + buildspec: codebuild/py35/examples.yml + - identifier: py35_awses_1_7_1 + buildspec: codebuild/py35/awses_1.7.1.yml + - identifier: py35_awses_2_0_0 + buildspec: codebuild/py35/awses_2.0.0.yml + - identifier: py35_awses_latest + buildspec: codebuild/py35/awses_latest.yml + + - identifier: py36_integ + buildspec: codebuild/py36/integ.yml + - identifier: py36_examples + buildspec: codebuild/py36/examples.yml + - identifier: py36_awses_1_7_1 + buildspec: codebuild/py36/awses_1.7.1.yml + - identifier: py36_awses_2_0_0 + buildspec: codebuild/py36/awses_2.0.0.yml + - identifier: py36_awses_latest + buildspec: codebuild/py36/awses_latest.yml + + - identifier: py37_integ + buildspec: codebuild/py37/integ.yml + - identifier: py37_examples + buildspec: codebuild/py37/examples.yml + - identifier: py37_awses_1_7_1 + buildspec: codebuild/py37/awses_1.7.1.yml + - identifier: py37_awses_2_0_0 + buildspec: codebuild/py37/awses_2.0.0.yml + - identifier: py37_awses_latest + buildspec: codebuild/py37/awses_latest.yml + + - identifier: py38_integ + buildspec: codebuild/py38/integ.yml + - identifier: py38_examples + buildspec: codebuild/py38/examples.yml + - identifier: py38_awses_1_7_1 + buildspec: codebuild/py38/awses_1.7.1.yml + - identifier: py38_awses_2_0_0 + buildspec: codebuild/py38/awses_2.0.0.yml + - identifier: py38_awses_latest + buildspec: codebuild/py38/awses_latest.yml diff --git a/codebuild/py27/awses_1.7.1.yml b/codebuild/py27/awses_1.7.1.yml new file mode 100644 index 000000000..8f5cca0ec --- /dev/null +++ b/codebuild/py27/awses_1.7.1.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py27-awses_1.7.1" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py27/awses_2.0.0.yml b/codebuild/py27/awses_2.0.0.yml new file mode 100644 index 000000000..bb667f4df --- /dev/null +++ b/codebuild/py27/awses_2.0.0.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py27-awses_2.0.0" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py27/awses_latest.yml b/codebuild/py27/awses_latest.yml new file mode 100644 index 000000000..a813060e8 --- /dev/null +++ b/codebuild/py27/awses_latest.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py27-awses_latest" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py27/examples.yml b/codebuild/py27/examples.yml new file mode 100644 index 000000000..19091ebdb --- /dev/null +++ b/codebuild/py27/examples.yml @@ -0,0 +1,18 @@ +version: 0.2 + +env: + variables: + TOXENV: "py27-examples" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - tox diff --git a/codebuild/py27/integ.yml b/codebuild/py27/integ.yml new file mode 100644 index 000000000..497226f01 --- /dev/null +++ b/codebuild/py27/integ.yml @@ -0,0 +1,18 @@ +version: 0.2 + +env: + variables: + TOXENV: "py27-integ" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - tox diff --git a/codebuild/py35/awses_1.7.1.yml b/codebuild/py35/awses_1.7.1.yml new file mode 100644 index 000000000..d7c6e3bd4 --- /dev/null +++ b/codebuild/py35/awses_1.7.1.yml @@ -0,0 +1,23 @@ +version: 0.2 + +env: + variables: + TOXENV: "py35-awses_1.7.1" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.5.9 + - pyenv local 3.5.9 + - pip install tox tox-pyenv + - cd test_vector_handlers + - tox diff --git a/codebuild/py35/awses_2.0.0.yml b/codebuild/py35/awses_2.0.0.yml new file mode 100644 index 000000000..ae47785fa --- /dev/null +++ b/codebuild/py35/awses_2.0.0.yml @@ -0,0 +1,23 @@ +version: 0.2 + +env: + variables: + TOXENV: "py35-awses_2.0.0" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.5.9 + - pyenv local 3.5.9 + - pip install tox tox-pyenv + - cd test_vector_handlers + - tox diff --git a/codebuild/py35/awses_latest.yml b/codebuild/py35/awses_latest.yml new file mode 100644 index 000000000..d56efa94f --- /dev/null +++ b/codebuild/py35/awses_latest.yml @@ -0,0 +1,23 @@ +version: 0.2 + +env: + variables: + TOXENV: "py35-awses_latest" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.5.9 + - pyenv local 3.5.9 + - pip install tox tox-pyenv + - cd test_vector_handlers + - tox diff --git a/codebuild/py35/examples.yml b/codebuild/py35/examples.yml new file mode 100644 index 000000000..b700465ad --- /dev/null +++ b/codebuild/py35/examples.yml @@ -0,0 +1,20 @@ +version: 0.2 + +env: + variables: + TOXENV: "py35-examples" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.5.9 + - pyenv local 3.5.9 + - pip install tox tox-pyenv + - tox diff --git a/codebuild/py35/integ.yml b/codebuild/py35/integ.yml new file mode 100644 index 000000000..b7e9ba2d7 --- /dev/null +++ b/codebuild/py35/integ.yml @@ -0,0 +1,20 @@ +version: 0.2 + +env: + variables: + TOXENV: "py35-integ" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.5.9 + - pyenv local 3.5.9 + - pip install tox tox-pyenv + - tox diff --git a/codebuild/py36/awses_1.7.1.yml b/codebuild/py36/awses_1.7.1.yml new file mode 100644 index 000000000..80d2a67e3 --- /dev/null +++ b/codebuild/py36/awses_1.7.1.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py36-awses_1.7.1" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py36/awses_2.0.0.yml b/codebuild/py36/awses_2.0.0.yml new file mode 100644 index 000000000..c54afd266 --- /dev/null +++ b/codebuild/py36/awses_2.0.0.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py36-awses_2.0.0" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py36/awses_latest.yml b/codebuild/py36/awses_latest.yml new file mode 100644 index 000000000..f4f141d28 --- /dev/null +++ b/codebuild/py36/awses_latest.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py36-awses_latest" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py36/examples.yml b/codebuild/py36/examples.yml new file mode 100644 index 000000000..efd098578 --- /dev/null +++ b/codebuild/py36/examples.yml @@ -0,0 +1,18 @@ +version: 0.2 + +env: + variables: + TOXENV: "py36-examples" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - tox diff --git a/codebuild/py36/integ.yml b/codebuild/py36/integ.yml new file mode 100644 index 000000000..021741dbe --- /dev/null +++ b/codebuild/py36/integ.yml @@ -0,0 +1,18 @@ +version: 0.2 + +env: + variables: + TOXENV: "py36-integ" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - tox diff --git a/codebuild/py37/awses_1.7.1.yml b/codebuild/py37/awses_1.7.1.yml new file mode 100644 index 000000000..08584fb4b --- /dev/null +++ b/codebuild/py37/awses_1.7.1.yml @@ -0,0 +1,23 @@ +version: 0.2 + +env: + variables: + TOXENV: "py37-awses_1.7.1" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.7.9 + - pyenv local 3.7.9 + - pip install tox tox-pyenv + - cd test_vector_handlers + - tox diff --git a/codebuild/py37/awses_2.0.0.yml b/codebuild/py37/awses_2.0.0.yml new file mode 100644 index 000000000..3935d4b53 --- /dev/null +++ b/codebuild/py37/awses_2.0.0.yml @@ -0,0 +1,23 @@ +version: 0.2 + +env: + variables: + TOXENV: "py37-awses_2.0.0" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.7.9 + - pyenv local 3.7.9 + - pip install tox tox-pyenv + - cd test_vector_handlers + - tox diff --git a/codebuild/py37/awses_latest.yml b/codebuild/py37/awses_latest.yml new file mode 100644 index 000000000..ec882400b --- /dev/null +++ b/codebuild/py37/awses_latest.yml @@ -0,0 +1,23 @@ +version: 0.2 + +env: + variables: + TOXENV: "py37-awses_latest" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.7.9 + - pyenv local 3.7.9 + - pip install tox tox-pyenv + - cd test_vector_handlers + - tox diff --git a/codebuild/py37/examples.yml b/codebuild/py37/examples.yml new file mode 100644 index 000000000..a43ac5b84 --- /dev/null +++ b/codebuild/py37/examples.yml @@ -0,0 +1,20 @@ +version: 0.2 + +env: + variables: + TOXENV: "py37-examples" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.7.9 + - pyenv local 3.7.9 + - pip install tox tox-pyenv + - tox diff --git a/codebuild/py37/integ.yml b/codebuild/py37/integ.yml new file mode 100644 index 000000000..7f886c213 --- /dev/null +++ b/codebuild/py37/integ.yml @@ -0,0 +1,20 @@ +version: 0.2 + +env: + variables: + TOXENV: "py37-integ" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.7.9 + - pyenv local 3.7.9 + - pip install tox tox-pyenv + - tox diff --git a/codebuild/py38/awses_1.7.1.yml b/codebuild/py38/awses_1.7.1.yml new file mode 100644 index 000000000..450166b3f --- /dev/null +++ b/codebuild/py38/awses_1.7.1.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py38-awses_1.7.1" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py38/awses_2.0.0.yml b/codebuild/py38/awses_2.0.0.yml new file mode 100644 index 000000000..5d7210748 --- /dev/null +++ b/codebuild/py38/awses_2.0.0.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py38-awses_2.0.0" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py38/awses_latest.yml b/codebuild/py38/awses_latest.yml new file mode 100644 index 000000000..ba8c26514 --- /dev/null +++ b/codebuild/py38/awses_latest.yml @@ -0,0 +1,21 @@ +version: 0.2 + +env: + variables: + TOXENV: "py38-awses_latest" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - cd test_vector_handlers + - tox diff --git a/codebuild/py38/examples.yml b/codebuild/py38/examples.yml new file mode 100644 index 000000000..7033cb3a3 --- /dev/null +++ b/codebuild/py38/examples.yml @@ -0,0 +1,18 @@ +version: 0.2 + +env: + variables: + TOXENV: "py38-examples" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - tox diff --git a/codebuild/py38/integ.yml b/codebuild/py38/integ.yml new file mode 100644 index 000000000..7ab243334 --- /dev/null +++ b/codebuild/py38/integ.yml @@ -0,0 +1,18 @@ +version: 0.2 + +env: + variables: + TOXENV: "py38-integ" + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pip install tox + - tox diff --git a/decrypt_oracle/tox.ini b/decrypt_oracle/tox.ini index f0a7804e5..31ef18772 100644 --- a/decrypt_oracle/tox.ini +++ b/decrypt_oracle/tox.ini @@ -95,6 +95,8 @@ passenv = AWS_DEFAULT_REGION \ # Pass through AWS credentials pointer in ECS/CodeBuild AWS_CONTAINER_CREDENTIALS_RELATIVE_URI \ + # AWS Role access in CodeBuild is via the contaner URI + AWS_CONTAINER_CREDENTIALS_RELATIVE_URI \ # Used to manage test generators AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_GENERATE_TEST_VECTORS \ AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION \ diff --git a/test_vector_handlers/tox.ini b/test_vector_handlers/tox.ini index c2aeda5a1..484c3dddc 100644 --- a/test_vector_handlers/tox.ini +++ b/test_vector_handlers/tox.ini @@ -41,6 +41,8 @@ commands = pytest --basetemp={envtmpdir} -l --cov awses_test_vectors test/ {posa passenv = # Pass through AWS credentials AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN \ + # AWS Role access in CodeBuild is via the contaner URI + AWS_CONTAINER_CREDENTIALS_RELATIVE_URI \ # Pass through AWS profile name (useful for local testing) AWS_PROFILE sitepackages = False @@ -90,7 +92,8 @@ commands = {[testenv:mypy-coverage]commands} [testenv:mypy-py2] -basepython = {[testenv:mypy-common]basepython} +# We only test 2.7, please upgrade +basepython = python2.7 deps = {[testenv:mypy-common]deps} commands = python -m mypy \ diff --git a/tox.ini b/tox.ini index 830fc617f..f0908d5d4 100644 --- a/tox.ini +++ b/tox.ini @@ -46,6 +46,8 @@ passenv = AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2 \ # Pass through AWS credentials AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN \ + # AWS Role access in CodeBuild is via the contaner URI + AWS_CONTAINER_CREDENTIALS_RELATIVE_URI \ # Pass through AWS profile name (useful for local testing) AWS_PROFILE \ # Pass through custom pip config file settings