Git Product home page Git Product logo

nd9991-c3-hello-world-exercise-solution's People

Contributors

dhadhazi avatar heartziq avatar rafaelpadilla avatar sudkul 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

Watchers

 avatar  avatar  avatar  avatar  avatar

nd9991-c3-hello-world-exercise-solution's Issues

how to auto get EC2's public IP

in main4.yml
after creating infrastructure ec2, need to use ansible to do some config tasks in this EC2.
how to auto get EC2's public IP?
Now it seems to need to manually get and edit the main4.yml file?
any other solution?

Use the public IP if the VM is already created

hosts: 44.192.7.133

issue in Exercise: Smoke Testing

when you try to run destroy_environment in this job this will NOT work as the image he is using is not supporting AWS commands
issue

Failing to create bucket in job 'Execute bucket.yml - Create Cloudformation Stack'

The create_and_deploy_front_end job is failing in CircleCI:

Waiting for changeset to be created..
Waiting for stack create/update to complete

Failed to create/update the stack. Run the following command
to fetch the list of events leading up to the failure
aws cloudformation describe-stack-events --stack-name stack-create-bucket-4107f96

Exited with code exit status 255

When I run the describe-stack-events command, I see the following error:

CREATE_FAILED   Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting (Service: Amazon S3; Status Code: 400; Error Code: InvalidBucketAclWithObjectOwnership; Request ID: PH3A3FN20TS9H7CA; S3 Extended Request ID: 3tsO51e7/ugunMvoeh/acWVGKAb+5hbumfFd+CPqfHSsYlT/bDHbSGOnePEySYVGWm1/hexc88o=; Proxy: null) 

This appears to be due to a recent change to default settings on newly created buckets. Following some hints from that Stack Overflow I was able resolve the problem by removing the PublicRead ACL and replacing with public access config and ownership controls:

diff --git a/bucket.yml b/bucket.yml
index c179569..7b43bb0 100644
--- a/bucket.yml
+++ b/bucket.yml
@@ -9,7 +9,14 @@ Resources:
     Type: AWS::S3::Bucket
     Properties:
       BucketName: !Sub "${MyBucketName}"
-      AccessControl: PublicRead
+      PublicAccessBlockConfiguration:
+        BlockPublicAcls: false
+        BlockPublicPolicy: false
+        IgnorePublicAcls: false
+        RestrictPublicBuckets: false
+      OwnershipControls:
+        Rules:
+          - ObjectOwnership: ObjectWriter
       WebsiteConfiguration:
         IndexDocument: index.html
         ErrorDocument: error.html

Setup Webserver using Ansible Issue

i'm setting up a web server in an EC2 using ci / cd circleci.
but get always get error

ansible-playbook -i inventory.txt main-remote.yml

Error from CircleCi

PLAY [Exercise for setting up a web server in an EC using ci / cd circleci] ****

TASK [Gathering Facts] *********************************************************
fatal: [54.196.240.122]: UNREACHABLE! => {"changed": false, "msg": "unpack requires a buffer of 4 bytes", "unreachable": true}

PLAY RECAP *********************************************************************
54.196.240.122             : ok=0    changed=0    unreachable=1    failed=0    skipped=0    rescued=0    ignored=0   

Exited with code exit status 4

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.