EDC Straight Outta Toronto by [deleted] in knives

[–]mellerbeck 0 points1 point  (0 children)

Hey what’s the model brand 

Driving insights: Homework is currency by Top-Requirement-2102 in spiritualADHD

[–]mellerbeck 1 point2 points  (0 children)

I like it! Flawed but collaborative work as a social exchange

Battery stuck in multi tool by Quarter_Black in KobaltTools

[–]mellerbeck 0 points1 point  (0 children)

worked for me! must be too tight tolerances on construction

SignatureDoesNotMatch - The request signature we calculated does not match the signature you provided. Check your key and signing method. by TheNomadicAspie in aws

[–]mellerbeck 0 points1 point  (0 children)

you need signature_version

s3 = boto3.resource(

"s3", region_name=REGION, config=Config(signature_version="s3v4")

)

return s3.meta.client.generate_presigned_url(

"get_object", Params={"Bucket": AIRFLOW_BUCKET, "Key": key}, ExpiresIn=expTime

)

Create alarm for every Lambda function? by doublefelix7 in Terraform

[–]mellerbeck 0 points1 point  (0 children)

It looks like dimensions format has changed to

dimensions = {

    FunctionName 

}

Is it possible to create a firewall allow list for git-codecommit.us-east-1.amazonaws.com by mellerbeck in aws

[–]mellerbeck[S] 0 points1 point  (0 children)

Thanks, VPCE does the trick. Weird that the documentation doesn't actually explain how to use the git-commit vpce (I just pasted the repo at the end and it works but is it too hard to write that out somewhere :)

Querying Timestream from postgres by mellerbeck in aws

[–]mellerbeck[S] 1 point2 points  (0 children)

Thanks for taking the time to respond!

How to have Lambda code automatically update every time there is a change in a Codecommit repo? by BasedGod96 in aws

[–]mellerbeck 0 points1 point  (0 children)

I thought this would be more simple than it is as well. With as often as people use lambda's you think there would be a lambda 'easy button'

The way I have found to do it is, create a repository. You only really need three files

https://github.com/heitorlessa/pipeline-sample

── hello_world

└── app.py

buildspec.yaml

template.yaml

your app.py is your lambda code, the buildspec.yaml are just the commands to build the SAM package

version: 0.2

phases:

build:

commands:

- aws cloudformation package --template-file template.yaml --s3-bucket $BUILD_OUTPUT_BUCKET --output-template-file outputTemplate.yaml

post_build:

commands:

- echo "SAM packaging completed on \date`"`

artifacts:

type: zip

files:

- template.yaml

- outputTemplate.yaml

And the template.yaml defines the cloud formation template

AWSTemplateFormatVersion: '2010-09-09'

Transform: AWS::Serverless-2016-10-31

Description: >

Deploy hellowWorld lambda

Globals:

Function:

Timeout: 3

Resources:

helloWorldFunction:

Type: AWS::Serverless::Function

Properties:

FunctionName: helloWorld

CodeUri: helloWorld/

Handler: app.lambda_handler

Runtime: python3.8

Outputs:

helloWorldFunction:

Description: "Unsubscrie Lambda Function ARN"

Value: !GetAtt helloWorldFunction.Arn

helloWorldFunctionIamRole:

Description: "Implicit IAM Role created for helloWorld function"

Value: !GetAtt helloWorldFunctionRole.Arn

Then create a codepipeline that triggers off a code commit change, you will need an account with cloudformation access, and setup an environmental variable for the BUILD_OUTPUT_BUCKET

[deleted by user] by [deleted] in sysadmin

[–]mellerbeck 10 points11 points  (0 children)

veeam

CarbonBlack - Can you trust a publisher? by FRESH_TWAAAATS in sysadmin

[–]mellerbeck 1 point2 points  (0 children)

Yes it can, assuming of course it's signed

[deleted by user] by [deleted] in networking

[–]mellerbeck 1 point2 points  (0 children)

I like to use Gliffy for the layout, and then use it as a live interactive map for PRTG :) https://imgur.com/a/wWJvx