1.6 KiB
1.6 KiB
Requirements
- Docker
- IAM Role with a SageMakerFullAccess and AmazonS3FullAccess
- IAM User credentials with SageMakerFullAccess, AWSCloudFormationFullAccess, IAMFullAccess, AmazonEC2FullAccess, AmazonS3FullAccess permissions
Creating S3 buckets with datasets
In the following Python script, change the bucket name and run the s3_sample_data_creator.py to create an S3 bucket with the sample mnist dataset in the region where you want to run the tests.
Step to run integration tests
- Copy the
.env.examplefile to.envand in the following steps modify the fields of this new file:- Configure the AWS credentials fields with those of your IAM User.
- Update the
SAGEMAKER_EXECUTION_ROLE_ARNwith that of your role created earlier. - Update the
S3_DATA_BUCKETparameter with the name of the bucket created earlier. - (Optional) If you have already created an EKS cluster for testing, replace the
EKS_EXISTING_CLUSTERfield with it's name.
- Build the image by doing the following:
- Navigate to the
components/awsdirectory. - Run
docker build . -f sagemaker/tests/integration_tests/Dockerfile -t amazon/integration_test
- Navigate to the
- Run the image, injecting your environment variable files:
- Navigate to the
components/awsdirectory. - Run
docker run --env-file sagemaker/tests/integration_tests/.env amazon/integration_test
- Navigate to the