Skip to content

Commit 94cae1d

Browse files
[IT-3523] Document current process for testing AMIs
Document the current manual process used for testing changes to AMIs used by service catalog products.
1 parent 0783dab commit 94cae1d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

sceptre/scipool/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Requirements:
3131
* Run `pre-commit install` to install the git hook.
3232

3333
## Testing
34+
35+
### Pre-Commit
3436
As a pre-deployment step we syntatically validate our sceptre and
3537
cloudformation yaml files with [pre-commit](https://pre-commit.com).
3638

@@ -40,6 +42,30 @@ execute the validations by running `pre-commit run --all-files`.
4042
Please install pre-commit, once installed the file validations will
4143
automatically run on every commit.
4244

45+
### Functional Testing
46+
The process to test the functionality of an AMI and it's integration with our
47+
Service Catalog products is to first manually create a new AMI, then manually
48+
upload a new product template to S3, and finally create a test product in
49+
Service Catalog through a pull request to `organizations-infra`:
50+
51+
1. Make local changes to the packer repo to update or modify the AMI.
52+
1. Run packer manually with admin credentials for the `itsandbox` account
53+
to create a test AMI.
54+
1. Create an EC2 instance in the `itsandbox` account from the test AMI for any
55+
initial system validation.
56+
1. Make local changes to `service-catalog-library` to update the desired template
57+
to reference the test AMI.
58+
1. Manually upload the test template to S3 in the `itsandbox` account.
59+
1. Create a pull request for `organizations-infra` to add a new Service Catalog
60+
product to `scipool-dev` with 'test' in the name.
61+
1. Provision the test product from http://sc-dev.sageit.org to validate AMI
62+
integration with the product template
63+
1. Create a pull request for the packer repo to modify the AMI.
64+
1. Create a pull request for `service-catalog-library` to reference the new AMI.
65+
1. Create a pull request for `organizations-infra` to remove the test product and
66+
update the target product with the new template version.
67+
1. Delete the manually-created resources from `itsandbox`.
68+
4369
## Issues
4470
* https://sagebionetworks.jira.com/projects/IT
4571

0 commit comments

Comments
 (0)