Skip to content

Commit 6263ba3

Browse files
committed
Add LOCAL_DEVELOPMENT.md
1 parent 5b8f86c commit 6263ba3

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.5.3
2+
current_version = 1.5.4
33
commit = False
44
tag = False
55

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ template are pre-populated. Click the *Next* button at the bottom of the page.
113113
### Limitations
114114
- MSSQL server 2017 doesnt support continues replication. The solution is using MSSQL server 2016 by default.
115115

116+
## Local Development
117+
See [Local Development](docs/LOCAL_DEVELOPMENT.md) guide to get a copy of the project up and running on your local machine for development and testing purposes.
118+
116119
### Clean up
117120

118121
To remove the stack:

cfn/main.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AWSTemplateFormatVersion: "2010-09-09"
33
Description: Creates AWS infrastructure to deploy DMS solution. (uksb-1ppahhhui)
44

55
Metadata:
6-
Version: 1.5.3
6+
Version: 1.5.4
77

88
AWS::CloudFormation::Interface:
99
ParameterGroups:

docs/LOCAL_DEVELOPMENT.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Local Development
2+
3+
This section details how to run the solution locally and deploy your code changes from the command line.
4+
5+
### Pre-Requisites
6+
7+
The following dependencies must be installed:
8+
- Python >=3.8 and pip
9+
- virtualenv
10+
11+
### Build local development environment
12+
Once you have installed pre-requisites, you must run the following command to create a `virtualenv` and install all dependencies before commencing development.
13+
14+
1. Create a S3 bucket
15+
```
16+
BUCKET_NAME="your-s3-bucket-name"
17+
AWS_REGION="aws-region(e.g. us-east-1)"
18+
aws s3 mb s3://${BUCKET_NAME} --region $AWS_REGION
19+
```
20+
21+
1. Create a `.custom.mk` file and populate it with your own values
22+
```
23+
cp .custom.mk.example .custom.mk
24+
```
25+
1. Initialize the local environment
26+
```
27+
make init
28+
```
29+
30+
1. Activate `virtualenv` environment.
31+
```
32+
source venv/bin/activate
33+
```
34+
35+
### Deploy the stack
36+
To deploy the solution manually from the source to your AWS account, run the following:
37+
38+
```
39+
make deploy
40+
```
41+
42+
This will deploy the nested stack using the AWS CLI profile of the current shell. By default this will be the profile `default`.
43+
44+
### Test changes
45+
The following command will run `pre-commit` tests. This should be run before every new commit.
46+
47+
```
48+
make test
49+
```
50+
51+
### Clean the virtual environment
52+
This command will delete the virtual environment and all installed packages install via `make init`
53+
```
54+
make clean
55+
```
56+
57+
### Delete the resources created via CloudFormation
58+
Below command will delete deployed stack
59+
```
60+
make delete
61+
```

0 commit comments

Comments
 (0)