Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

HA iApp and Lambda Python Library #50

Merged
merged 65 commits into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
f39a470
added mgmt EIP
codygreen Aug 7, 2019
34bdad4
updated order of BIG-IP revoke license
codygreen Aug 7, 2019
302e955
Merge branch 'master' of github.com:mikeoleary/f5-sca-securitystack
codygreen Aug 7, 2019
5bb0e68
abstracted deploy variables that were hard coded
codygreen Aug 7, 2019
b0b7c47
added ha failover iapp
codygreen Aug 8, 2019
0f40ea1
revert to upstream
codygreen Aug 8, 2019
681e546
Merge branch 'master' of github.com:mikeoleary/f5-sca-securitystack
codygreen Aug 8, 2019
776ac13
download ha iApp
codygreen Aug 8, 2019
beee245
load ha iapp
codygreen Aug 8, 2019
1281c0b
configure iapp - step 1
codygreen Aug 8, 2019
424d494
fixed issue with iapp interface assignment
codygreen Aug 8, 2019
104334c
configure HA iApp
codygreen Aug 16, 2019
2a03019
Merge branch 'master' of github.com:mikeoleary/f5-sca-securitystack
codygreen Aug 16, 2019
d077e0d
added source load-key file
codygreen Aug 16, 2019
53b4da9
testing HA iApp config
codygreen Aug 16, 2019
1429767
Merge branch 'master' of github.com:mikeoleary/f5-sca-securitystack
codygreen Aug 16, 2019
d973312
initial lambda commit
codygreen Aug 20, 2019
49dc8c9
changed lambda folder structure
codygreen Aug 20, 2019
de9d534
get BIG-IP password from S3 bucket
codygreen Aug 20, 2019
4ebec7a
fix format in readme
codygreen Aug 20, 2019
9870d59
add buildspec
codygreen Aug 20, 2019
256192e
switch make test to virtualenv
codygreen Aug 20, 2019
069cea8
inital bigip commit
codygreen Aug 21, 2019
49ae154
fixed validation decoration problems
codygreen Aug 21, 2019
25c1da6
fix decorator and function return issue in tests
codygreen Aug 21, 2019
2345242
fixed implementation and test for run_bash_cmd
codygreen Aug 21, 2019
f8d649d
added install_iapp and fixed cfg_ha_iapp
codygreen Aug 21, 2019
e3047fa
move code for reuse between lambda functions
codygreen Aug 21, 2019
83e108d
create python wheel
codygreen Aug 21, 2019
2f460b2
adding make wheel to pipeline
codygreen Aug 21, 2019
192f27c
added artifact
codygreen Aug 21, 2019
80c32da
change artifact directory
codygreen Aug 21, 2019
a755468
remove base-directory
codygreen Aug 21, 2019
a979676
added ha_iapp lambda function
codygreen Aug 22, 2019
15290ec
fixed lambda packaging issues
codygreen Aug 22, 2019
80e0f46
remove .gitignore restrictions
codygreen Aug 22, 2019
7c25217
created CFT to deploy the ha iapp
codygreen Aug 22, 2019
f25c57f
cft factory creation
codygreen Aug 22, 2019
d6e2cc2
fixed path issue
codygreen Aug 22, 2019
22a4265
fixed path issue
codygreen Aug 22, 2019
f25e5a1
fix pipenv install issue
codygreen Aug 22, 2019
617f4f9
fix buildspec path issue
codygreen Aug 22, 2019
96120b7
added CFT resposes to lambda
codygreen Aug 22, 2019
2b18e78
seperated lambda install and added ha_iapp to parent cft
codygreen Aug 23, 2019
8e2836a
add DependsOn to BIG-IP stacks
codygreen Aug 23, 2019
b6042d8
fix S3 error: The specified key does not exist for lambda install
codygreen Aug 27, 2019
fa72961
fix lambda install cft creation errors
codygreen Aug 27, 2019
e80a93e
fix unassigned parameters for lambda install
codygreen Aug 27, 2019
b6c42e3
fix install lambda parameter issue, address ha_iapp ref error
codygreen Aug 27, 2019
d35b440
added script to update the stack
codygreen Aug 27, 2019
79c3a4a
fix lambda reference
codygreen Aug 27, 2019
0026ad5
fix import error for cfnresponse
codygreen Aug 27, 2019
b1c761b
fix timeout issue when cfnreponse is not called
codygreen Aug 27, 2019
e01a1a8
added response data for cfnreponse on Create event
codygreen Aug 27, 2019
7f4dd74
add readme for cft-factory
codygreen Aug 27, 2019
1c74eea
update ha_iapp readme and default make command now points to zip
codygreen Aug 27, 2019
fc8e4dd
added readme to lambda folder
codygreen Aug 27, 2019
89f2f28
automate pipeline build, move buildspec to root of repo
codygreen Aug 28, 2019
92a294c
add s3 deployment stage
codygreen Aug 28, 2019
4a902ce
add deployment action for source repo until issue #49 is addressed
codygreen Aug 28, 2019
146b784
added developer notes to the readme
codygreen Aug 28, 2019
9984cda
remove static ha_iapp CFN template
codygreen Aug 28, 2019
2a46973
fix formating differences
codygreen Aug 28, 2019
6c826f6
fix apppipelinewebhook name to be unique
codygreen Aug 28, 2019
d27dea1
fix sub error in template
codygreen Aug 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
.DS_Store
load-keys.sh

# lambda
lambda/f5_sca_libs/build
lambda/f5_sca_libs/dist
lambda/f5_sca_libs/src/*.egg-info
lambda/ha_iapp/ha_iapp.zip

# CFT Factory - these files are generated
cft-factory/ha_iapp.json
cft-factory/install_lambda.json
13 changes: 13 additions & 0 deletions BIG-IP/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@
"\"tmsh modify cm device ${HOSTNAME} unicast-address { { effective-ip ${INTIP} effective-port 1026 ip ${INTIP} } }\"\n",
"\"tmsh load sys application template /config/cloud/aws/f5.service_discovery.tmpl\"\n",
"\"tmsh load sys application template /config/cloud/aws/f5.cloud_logger.v1.0.0.tmpl\"\n",
"\"tmsh load sys application template /config/cloud/aws/f5.aws_advanced_ha.v1.4.0rc3.tmpl\"\n",
"\"tmsh save /sys config\")\n",
"for CMD in \"${tmsh[@]}\"\n",
"do\n",
Expand Down Expand Up @@ -1125,6 +1126,12 @@
"mode": "000755",
"owner": "root"
},
"/config/cloud/aws/f5.aws_advanced_ha.v1.4.0rc3.tmpl": {
"group": "root",
"mode": "000755",
"owner": "root",
"source": "https://raw.githubusercontent.com/F5Networks/f5-aws-cloudformation/v3.1.0/iApps/f5.aws_advanced_ha.v1.4.0rc3.tmpl"
},
"/config/cloud/aws/f5.cloud_logger.v1.0.0.tmpl": {
"group": "root",
"mode": "000755",
Expand Down Expand Up @@ -2194,6 +2201,12 @@
"mode": "000755",
"owner": "root"
},
"/config/cloud/aws/f5.aws_advanced_ha.v1.4.0rc3.tmpl": {
"group": "root",
"mode": "000755",
"owner": "root",
"source": "https://raw.githubusercontent.com/F5Networks/f5-aws-cloudformation/v3.1.0/iApps/f5.aws_advanced_ha.v1.4.0rc3.tmpl"
},
"/config/cloud/aws/f5.cloud_logger.v1.0.0.tmpl": {
"group": "root",
"mode": "000755",
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,18 @@ Third, BIG-IP tier 1 and tier 2 are deployed
Fourth, routes are replaced utilizing lambda functions since it's not natively allowed

Lastly, the AS3 Update template updates AS3

## Development
This project uses the AWS CloudPipeline to build the require Lambda functions as well as generating some of the CFN Templates.

To start developing against this project please follow the below procedures:

1) Create a GitHub [Personal Access Token](https://docs.aws.amazon.com/codepipeline/latest/userguide/GitHub-create-personal-token-CLI.html)
2) Add the GitHub PAT to your AWS Secrets Manager. **Note:** ensure the key uses the value GitHubPersonalAccessToken
3) Deploy the deploy-pipeline.template CloudFormation Template
1. BranchName: the branch name of your Git repository - usually master unless you created a branch for development.
2. GitHubOwner: the GitHub account owner for the repository. This is used to build the GitHub URL to access the repository.
3. OAuthSecretName: the name of your AWS Secrets Manager object that stores the GitHub PAT
4. RepositoryName: the Git repository name. This is used to build the GitHub URL to access the repository.
5. S3Bucket: the S3 bucket you want the CFN templates and lambda files installed to. **Note:** this bucket must already exists.
6. S3Key: the directory inside your S3 bucket that will contain the deployment artifacts.
Loading