Skip to content

Commit 3dced55

Browse files
author
Matthew Ball
committed
Update to v1.0.1
1 parent 92b1cae commit 3dced55

File tree

52 files changed

+2132
-16628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2132
-16628
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@ All notable changes to this project are documented in this file.
44
Based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.1] - 2020-09-29
8+
9+
- Added 'Save Template' option when importing new accounts and Regions. This removes the need to enable public access objects in the AmplifyStorageBucket
10+
- Altered wording around visibility levels when saving architecture diagrams. 'You' and 'All users' is now used instead of 'public' and 'private'.
11+
- Fixed bug that was causing import configurations to become corrupt when an account or Region was deleted by the UI if a discovery was in progress.
12+
- Fixed bug leading to invalid JSON being generated in CloudFormation templates for importing accounts and Regions.
13+
- Fixed Dependabot issues raised by GitHub
14+
- Fixed bug leading to RestApi icons not being displayed in Firefox.
15+
- Added support for Amazon QLDB Ledgers.
16+
- Updated README.
17+
718
## [1.0.0] - 2020-09-21
19+
820
- Initial release

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ fi
157157
cd deployment
158158
./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION $IMAGE_TAG
159159
aws cloudformation package --template-file "global-s3-assets/perspective-setup.template" --s3-bucket "$DIST_OUTPUT_BUCKET" --s3-prefix "${SOLUTION_NAME}/${VERSION}" --output-template-file packaged.template
160-
aws s3 cp packaged.template "s3://${DIST_OUTPUT_BUCKET}-${AWS_REGION}/${SOLUTION_NAME}/${VERSION}/aws-perspective.template"
160+
aws s3 cp packaged.template "s3://${DIST_OUTPUT_BUCKET}/${SOLUTION_NAME}/${VERSION}/aws-perspective.template"
161161
aws s3 cp global-s3-assets s3://${DIST_OUTPUT_BUCKET}-${AWS_REGION}/${SOLUTION_NAME}/${VERSION}/ --recursive --acl bucket-owner-full-control
162162
aws s3 cp regional-s3-assets s3://${DIST_OUTPUT_BUCKET}-${AWS_REGION}/${SOLUTION_NAME}/${VERSION}/ --recursive --acl bucket-owner-full-control
163163
164-
echo "You can now deploy using this template URL https://${DIST_OUTPUT_BUCKET}-${AWS_REGION}.s3.${AWS_REGION}.amazonaws.com/${SOLUTION_NAME}/${VERSION}/aws-perspective.template"
164+
echo "You can now deploy using this template URL https://${DIST_OUTPUT_BUCKET}.s3.${AWS_REGION}.amazonaws.com/${SOLUTION_NAME}/${VERSION}/aws-perspective.template"
165165
166166
167167
```

deployment/build-open-source-dist.sh

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/bin/bash
2+
#
3+
# This assumes all of the OS-level configuration has been completed and git repo has already been cloned
4+
#
5+
# This script should be run from the repo's deployment directory
6+
# cd deployment
7+
# ./build-s3-dist.sh solution-name
8+
#
9+
# Paramenters:
10+
# - solution-name: name of the solution for consistency
11+
12+
# Check to see if input has been provided:
13+
if [ -z "$1" ]; then
14+
echo "Please provide the trademark approved solution name for the open source package."
15+
echo "For example: ./build-s3-dist.sh trademarked-solution-name"
16+
exit 1
17+
fi
18+
19+
# Get reference for all important folders
20+
source_template_dir="$PWD"
21+
dist_dir="$source_template_dir/open-source"
22+
dist_template_dir="$dist_dir/deployment"
23+
source_dir="$source_template_dir/../source"
24+
25+
echo "------------------------------------------------------------------------------"
26+
echo "[Init] Clean old open-source folder"
27+
echo "------------------------------------------------------------------------------"
28+
echo "rm -rf $dist_dir"
29+
rm -rf $dist_dir
30+
echo "mkdir -p $dist_dir"
31+
mkdir -p $dist_dir
32+
echo "mkdir -p $dist_template_dir"
33+
mkdir -p $dist_template_dir
34+
35+
# echo "------------------------------------------------------------------------------"
36+
# echo "[Packing] Templates"
37+
# echo "------------------------------------------------------------------------------"
38+
# echo "cp $source_template_dir/cfn/templates/*.yaml $dist_template_dir/"
39+
# cp $source_template_dir/*.yaml $dist_template_dir/
40+
# echo "copy yaml templates and rename"
41+
# cp $source_template_dir/*.yaml $dist_template_dir/
42+
# cd $dist_template_dir
43+
# # aws cloudformation package --template-file "$template" --s3-bucket "$BUCKET" --s3-prefix "${project}/${version}" --output-template-file packaged.template
44+
45+
# # Rename all *.yaml to *.template
46+
# for f in *.yaml; do
47+
# mv -- "$f" "${f%.yaml}.template"
48+
# done
49+
50+
# echo "------------------------------------------------------------------------------"
51+
# echo "[Packing] Build Script"
52+
# echo "------------------------------------------------------------------------------"
53+
# echo "cp $source_template_dir/build-s3-dist.sh $dist_template_dir"
54+
# cp $source_template_dir/build-s3-dist.sh $dist_template_dir
55+
# echo "cp $source_template_dir/run-unit-tests.sh $dist_template_dir"
56+
# cp $source_template_dir/run-unit-tests.sh $dist_template_dir
57+
58+
# echo "------------------------------------------------------------------------------"
59+
# echo "[Packing] Create GitHub (open-source) zip file"
60+
# echo "------------------------------------------------------------------------------"
61+
# echo "cd $dist_dir"
62+
# cd $dist_dir
63+
# echo "zip -q -r9 ../$1.zip *"
64+
# zip -q -r9 ../$1.zip *
65+
# echo "Clean up open-source folder"
66+
# echo "rm -rf *"
67+
# rm -rf *
68+
# echo "mv ../$1.zip ."
69+
# mv ../$1.zip .
70+
# echo "Completed building $1.zip dist"
71+
echo "installing handy little lib called gitzip to create a zip based on our .gitignore"
72+
npm i -g gitzip
73+
echo "moving to root to generate zip file"
74+
cd ../
75+
echo "generating the zip using gitzip and ensuring exclusions are ignored as they do not need to be in GitHub"
76+
gitzip -d $dist_dir/$1.zip -x .taskcat.yml buildspec.yml .viperlight* aws-perspective-params.json taskcat-bucket-management.sh taskcat-buildspec.yaml

source/backend/discovery/combined.log

Lines changed: 0 additions & 2 deletions
This file was deleted.

source/backend/discovery/src/discovery/discovery-service.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class DiscoveryService {
5151
"AWS::KMS::Key",
5252
"AWS::CodeBuild::Project",
5353
"AWS::CodePipeline::Pipeline",
54-
"AWS::SQS::Queue"
54+
"AWS::SQS::Queue",
55+
"AWS::QLDB::Ledger"
5556
];
5657

5758
// Scan in all resources in parallel

source/backend/functions/api/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/backend/functions/api/src/account-import-template.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ Resources:
134134
}
135135
},
136136
{
137-
"Sid": "HttpsOnly"
138-
"Action": "*"
137+
"Sid": "HttpsOnly",
138+
"Action": "*",
139139
"Effect": "Deny",
140140
"Resource": "arn:aws:s3:::${ConfigBucket}/*",
141-
"Principal": '*'
141+
"Principal": "*",
142142
"Condition": {
143143
"Bool": {
144144
"aws:SecureTransport": "false"

source/backend/functions/api/src/account-region-template.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ Resources:
120120
}
121121
},
122122
{
123-
"Sid": "HttpsOnly"
124-
"Action": "*"
123+
"Sid": "HttpsOnly",
124+
"Action": "*",
125125
"Effect": "Deny",
126126
"Resource": "arn:aws:s3:::${ConfigBucket}/*",
127-
"Principal": '*'
127+
"Principal": "*",
128128
"Condition": {
129129
"Bool": {
130130
"aws:SecureTransport": "false"

source/backend/functions/cost-parser/costParser.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ const getDateThreshold = (lineItems) => {
251251
const mergeRecord = (newRecord, oldRecord) => {
252252
let modified = false;
253253

254-
let dateThreshold = getDateThreshold(oldRecord.lineItems);
255-
//console.log(dateThreshold)
254+
let dateTheshold = getDateThreshold(oldRecord.lineItems);
255+
//console.log(dateTheshold)
256256

257257
newRecord.lineItems.forEach(newElement => {
258258

259-
if (new Date(newElement.startBillingInterval) > dateThreshold) {
259+
if (new Date(newElement.startBillingInterval) > dateTheshold) {
260260
//console.log("adding record");
261261
//console.log(util.inspect(newElement, { depth: 10 }));
262262
oldRecord.lineItems.push(newElement);
@@ -277,7 +277,7 @@ const handleLineData = (line) => {
277277

278278
addKeyToObject(data, "lineItemId", columns[0]);
279279

280-
let timeInterval = separateDates(columns[1]);
280+
let timeInterval = seperateDates(columns[1]);
281281

282282
addKeyToObject(data, "startBillingInterval", timeInterval[0]);
283283
addKeyToObject(data, "endBillingInterval", timeInterval[1]);
@@ -332,7 +332,7 @@ const getDayOfYear = (inputDate) => {
332332
return day;
333333
}
334334

335-
const separateDates = (dateString) => {
335+
const seperateDates = (dateString) => {
336336
return dateString.split("/");
337337
}
338338

0 commit comments

Comments
 (0)