Coder Social home page Coder Social logo

quickstart-examples's Introduction

AWS Partner Solution examples

This GitHub repository contains example files for AWS Partner Solutions, including AWS CloudFormation templates, deployment guides, and architecture diagrams. It also includes examples that are discussed in posts on the Integration & Automation Blog.

quickstart-examples's People

Contributors

andrew-glenn avatar annaone avatar aws-ia-ci avatar bmoller avatar dattasa9 avatar davmayd avatar delfingala avatar emoffett avatar gargana avatar glennchia avatar handans avatar henrybravo avatar jaymccon avatar joannies avatar marciarieferjohnston avatar mobytoby avatar santiagocardenas avatar shalomcarmel avatar sshalabh avatar sshvans avatar tbulding avatar ticoombs avatar tlindsay42 avatar tonynv avatar troy-ameigh avatar vini-eero avatar vsnyc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quickstart-examples's Issues

Can we add a CNAME for an EC2 in Cloud Formation Template when using Confluent quick start template?

Hi,

Right now after creating using quickstart our Kafka services are only accessible through IP or a generate DNS name using the IP on it. We are thinking this is probably not good practice, since this service will eventually get updated and the IP will be changed.

We are thinking our services should respond by a proper DNS URL. I.E - "kafka-broker.dev.latam.exampledomain.com", "schema-registry.dev.latam.exampledomain.com". This prevents internal changes in applications that may be using those services.

If you are using the quick start CFT to start a cluster on AWS is it possible to give the Zookeeper, Schema Registry, Connectors, Rest endpoints and Broker ec2s a CNAME through the CFT? If the creation of the EC2 was done in the CFT then we could use its IP to create a CNAME but as I can’t see any instances being created in the quick start this may not be possible?

Much Appreciated
Michael

blog post: Building a CI/CD pipeline for Hugo websites ..is failing because Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting

The excellent blog post here:

https://aws.amazon.com/blogs/infrastructure-and-automation/building-a-ci-cd-pipeline-for-hugo-websites/

..did not work for me this morning. When building the cloudformation stack today, the WebHostingBucket step fails with this Status Reason:

Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting (Service: Amazon S3; Status Code: 400; Error Code: InvalidBucketAclWithObjectOwnership; Request ID: QHZW5HM2KENR0Z6P; S3 Extended Request ID: Nk4f41M6G5zY2jLqOswB0UckFLIH2K39oo2YxURqblAClcrjjglbXvg7FQXKODATHklckqDAABcopNuQIWPFqQ==; Proxy: null)

I think it is failing now because of the April 2023 change which AWS described in this snippet I paste here:

We are reaching out to inform you that starting in April 2023 Amazon S3 will change the default security configuration for all new S3 buckets. For new buckets created after this date, S3 Block Public Access will be enabled, and S3 access control lists (ACLs) will be disabled.

I was fumbling around inside of the repo where a fix might happen:
https://github.com/aws-quickstart/quickstart-examples/tree/main/samples/hugo-pipeline

..but AWS perms are not my favorite kind of work ;-) But it would be nice if this super easy and clear blog worked again.

[LambdaZips feedback]

Would you please update to include an example Cloudformation for a Lambda container? Not SAM, but Cloudformation, please.

Lambda create_stack fails when using reserved 'aws:' tags

When launching this template from AWS Service Catalog, the CfnStackAssumeRole lambda function (QuickStartStackMakerLambda) fails due to using reserved tags. The error message the Lambda returns is as follows

An error occurred (ValidationError) when calling the CreateStack operation: aws: prefixed tag key names are not allowed for external use.
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 133, in cfn_handler
physical_resource_id, response_data = create_func(event, context)
File "/var/task/lambda_function.py", line 335, in create
}] + parent_properties['Tags']
File "/var/runtime/botocore/client.py", line 386, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/runtime/botocore/client.py", line 705, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the CreateStack operation: aws: prefixed tag key names are not allowed for external use.

LambdaZips does not update

LambdaZip is a great source on how to support the initial deployment but it does not support an update as the copy will happen, however the lambda function will not get updated.

[LambdaZips feedback]

Hi,
I really liked the blog. I would like to know how to do this for a lambda function that is created outside of the yaml template.
From my understanding I cannot use cfnresponse because it is not an inline function. Could you please explain what the requirements are for a lambda function that's not an inline function in the yaml template?
Thanks in advance

cleanup_response() - code quality issue and probable bug

for k in ["Complete", "Poll", "permission", "rule"]:
if k in response_data.keys():
del response_data[k]

for k in ["Complete", "Poll", "permission", "rule"] is meaningless because k is not used inside the for.

if k in response_data.keys(): together with del response_data[k] should delete all the keys.

Overall, the code doesn't seem to be intentional.

[LambdaZips feedback]

HI Team,

I have tried to use this code by the lambda function is just timing out and no zip is created.

Regards,
SR

access denied error

Getting this error:

User: arn:aws:sts::30237836XXXX:assumed-role/delm5c-DeleteAfterTTLStac-DeleteCFNLambdaExecution-1JN3G0KJGWPOV/DeleteCFNLambda-delm5c is not authorized to perform: ssm:DeleteParameter on resource: arn:aws:ssm:us-east-1:30237836XXXX:parameter/CFN-DemoParameter-N8kk1WlMtNg3 (Service: AmazonSSM; Status Code: 400; Error Code: AccessDeniedException; Request ID: 4bbdd9b5-51a2-4a0c-bfb6-e458c570a847)

Stack-overflow reference:

https://stackoverflow.com/questions/59405215/remove-a-template-after-5-minutes

I Want only for S3 url not zip file

I Want only for S3 url paste and create lambda function without zip example.

I tried to CopyZipsFunction remove but error through.

So please update the for only S3 URL based

thanks

Permissions issue

Great stack, thanks for making it available!

One issue I found was that there were additional permissions required for the delete stack role.

         # The following were missing from the example
          -  
            Sid: IAMPermissions
            Effect: "Allow"
            Action:
              - iam:DeleteRolePolicy
              - iam:DeleteRole
            Resource: 
              - !Sub "arn:aws:iam::${AWS::AccountId}:role/${StackName}-DeleteCFNLambda"
              - !Sub "arn:aws:iam::${AWS::AccountId}:role/${StackName}-DeleteCFNLambdaExecutionRole"
              - !Sub "arn:aws:iam::${AWS::AccountId}:role/${StackName}-GenerateCronExpLambdaRole"
          - 
            Sid: LamdaPermissions
            Effect: "Allow"
            Action:
              - lambda:DeleteFunction
              - lambda:InvokeFunction
              - lambda:RemovePermission
            Resource: 
              - !Sub "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${StackName}-GenerateCronExpLambda"
              - !Sub "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${StackName}-DeleteCFNLambda"
          -  
            Sid: EventsPermissions
            Effect: "Allow"
            Action: 
              - events:RemoveTargets
              - events:DeleteRule
            Resource: 
             - !Sub  "arn:aws:events:${AWS::Region}:${AWS::AccountId}:rule/${StackName}-DeleteStackEventRule"

Guidance on SigV4 within the QuickStart Catalog

Note: The AWS Quick Start team is in the process of updating our entire catalog to reflect SigV4 requests. A blog-post is in progress at this time. For the moment, this issue serves as a placeholder for additional details - including links to relevant blog posts / documentation, etc.. Watch this space!

Timestamp incorrectly set in Write-LogsEntry example

Using ToUniversalTime() results in an incorrect timestamp as the UTC conversion is repeated when the event is marshalled:

https://github.com/aws/aws-sdk-net/blob/0fb3f01067713d215363ec098a92d3ee05898434/sdk/src/Core/Amazon.Runtime/Internal/Transform/CustomMarshallTransformations.cs#L12

$logEntry.Timestamp = (Get-Date).ToUniversalTime()

This isn't too obvious from the docs, perhaps it could also be clarified there?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.