Skip to content

Commit aed48cd

Browse files
committed
removing sensitive logging statements
1 parent 52e8db6 commit aed48cd

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

sumologic-app-utils/deploy.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ if [ ! -f sumo_app_utils.zip ]; then
1717
echo "creating zip file"
1818
mkdir python
1919
cd python
20-
pip install crhelper -t .
21-
pip install requests -t .
22-
pip install retrying -t .
20+
pip3 install crhelper -t .
21+
pip3 install requests -t .
22+
pip3 install retrying -t .
2323
cp -v ../src/*.py .
24-
zip -r ../sumo_app_utils.zip .
24+
zip -r ../sumo_app_utils1.zip .
2525
cd ..
2626
rm -r python
2727
fi
2828

29-
version="2.0.9"
29+
version="2.0.15"
3030

31-
aws s3 cp sumo_app_utils.zip s3://$SAM_S3_BUCKET/sumo_app_utils/v"$version"/sumo_app_utils.zip --region $AWS_REGION --acl public-read
31+
# aws s3 cp sumo_app_utils.zip s3://$SAM_S3_BUCKET/sumo_app_utils/v"$version"/sumo_app_utils.zip --region $AWS_REGION --acl public-read
3232

33-
sam package --template-file sumo_app_utils.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged_sumo_app_utils.yaml --s3-prefix "sumo_app_utils/v"$version --region $AWS_REGION --profile $AWS_PROFILE
33+
# sam package --template-file sumo_app_utils.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged_sumo_app_utils.yaml --s3-prefix "sumo_app_utils/v"$version --region $AWS_REGION --profile $AWS_PROFILE
3434

35-
sam publish --template packaged_sumo_app_utils.yaml --region $AWS_REGION --semantic-version $version
35+
# sam publish --template packaged_sumo_app_utils.yaml --region $AWS_REGION --semantic-version $version
3636

3737
# sam deploy --template-file packaged_sumo_app_utils.yaml --stack-name testingsumoapputils --capabilities CAPABILITY_IAM --region $AWS_REGION
3838

sumologic-app-utils/src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def create(event, context):
3030
data, resource_id = resource.create(**params)
3131
except Exception as e:
3232
raise e
33-
print(data)
33+
#print(data)
3434
print(resource_id)
3535
helper.Data.update(data)
3636
helper.Status = "SUCCESS"
@@ -42,7 +42,7 @@ def create(event, context):
4242
def update(event, context):
4343
resource, resource_type, params = get_resource(event)
4444
data, resource_id = resource.update(**params)
45-
print(data)
45+
#print(data)
4646
print(resource_id)
4747
helper.Data.update(data)
4848
helper.Status = "SUCCESS"
24.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)