AWS sol architect

.docx

School

Ivy Tech Community College, Northcentral *

*We aren’t endorsed by this school

Course

210

Subject

Information Systems

Date

Apr 30, 2024

Type

docx

Pages

115

Uploaded by CoachResolveGiraffe20 on coursehero.com

Amazon CodeWhisperer analyzes your comments and code as you write them in your integrated development environment (IDE). It goes beyond code completion by using natural language processing to comprehend the comments in your code. By understanding English comments, CodeWhisperer generates complete functions and code blocks that align with your descriptions. CodeWhisperer also analyzes the surrounding code, ensuring the generated code matches your style and naming conventions and seamlessly integrates into the existing context. When scanning for security vulnerabilities, CodeWhisperer assesses your code against multiple sets of standards and best practices. This includes the following: •Open Worldwide Application Security Project (OWASP) standards •Crypto library best practices •AWS security standards The security scan feature is continuously updated to help keep applications free from new security vulnerabilities. Compatibility: CodeWhisperer integrates with popular tools such as Visual Studio Code, JetBrains IDEs (IntelliJ IDEA, PyCharm, etc.), Amazon SageMaker Studio, JupyterLab, AWS Cloud9, and AWS Lambda console. Support: CodeWhisperersupports a wide range of programming languages and development environments, including Python, Java, JavaScript, TypeScript, C#, Go, Rust, PHP, Ruby, Kotlin, C, C++, shell scripting, structured query language (SQL), and Scala. Installation: You can access CodeWhisperer by downloading and installing the AWS Toolkit IDE extension or plugin. You can also activate CodeWhisperer from directly within the AWS Lambda and AWS Cloud9 console code editors.
The code generation feature of CodeWhisperer offers code suggestions in real time in your development environment. It automatically offers code completion and code generation suggestions. It uses natural language processing of English comments in your code and an understanding of surrounding code to suggest whole lines of code, complete functions, and logical blocks of code. The generated code is aligned with your coding style and naming conventions. CodeWhisperer prioritizes secure coding and responsible artificial intelligence (responsible AI) practices. It’s optimized for Amazon APIs and trained extensively on Amazon and open-source code. You have the option to accept the first suggestion, explore more suggestions, or continue writing your own code. It’s important to review each code suggestion before accepting it because you might need to make edits to ensure that the suggestion aligns with your intended functionality. User actions •Previous and next suggestion: Use the left arrow and right arrow. •Accept a suggestion: Press Tab. •Reject a suggestion: Press Esc. •Manually start code generation when typing a comment: On MacOS, press Option+C, and on Windows, press Alt+C. Open Code Reference Log CodeWhisperer learns from open-source projects and the code it suggests might occasionally resemble code samples from the training data. With the reference log, you can view references to code suggestions that are similar to the training data. When such occurrences happen, CodeWhisperer notifies you and provides repository and licensing information. Use this information to make decisions about whether to use the code in your project and properly attribute the source code as desired.
The security scanning feature of CodeWhisperer detects security vulnerabilities in both CodeWhisperer-generated code and developer-written code. It scans the code to identify potential vulnerabilities and provides suggestions for remediation. This includes scanning for hard-to-find vulnerabilities that might be overlooked. The security scan is compatible with popular IDEs such as VS Code and JetBrains. It supports Python, Java, and JavaScript. Automated code generation automates repetitive tasks and saves you time. It eliminates the need for you to invest excessive hours in exploring and learning new technologies. Instead, you can rely on high-quality code suggestions that match your coding style. This approach enhances your productivity so you can focus on critical tasks, which encourages innovation and progress in software development. With automated code generation, you can streamline your workflows and achieve significant time savings while ensuring the delivery of code that meets your standards. CodeWhisperer code generation offers many benefits for software development organizations. It accelerates application development for faster delivery of software solutions. By automating
repetitive tasks, it optimizes the use of developer time, so developers can focus on more critical aspects of the project. Additionally, code generation helps mitigate security vulnerabilities, safeguarding the integrity of the codebase. CodeWhisperer also protects open source intellectual property by providing the open source reference tracker. CodeWhisperer enhances code quality and reliability, leading to robust and efficient applications. And it supports an efficient response to evolving software threats, keeping the codebase up to date with the latest security practices. CodeWhisperer has the potential to increase development speed, security, and the quality of software. Module 3 – Guided Lab: Hosting a Static Website Lab overview and objectives Static websites have fixed content with no backend processing. They can contain HTML pages, images, style sheets, and all files that are needed to render a website. However, static websites do not use server-side scripting or a database. If you want your static webpages to provide interactivity and run programming logic, you can use JavaScript that runs in the user's web browser. You can easily host a static website on Amazon Simple Storage Service (Amazon S3) by uploading the content and making it publicly accessible. No servers are needed, and you can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere on the web. After completing this lab, you should be able to: Create a bucket in Amazon S3 Upload content to your bucket Enable access to the bucket objects Update the website Task 1: Creating a bucket in Amazon S3 In this task, you will create an S3 bucket and configure it for static website hosting. 5. In the AWS Management Console , on the Services menu, choose S3 . 6. Choose Create bucket An S3 bucket name is globally unique, and the namespace is shared by all AWS accounts. After you create a bucket, the name of that bucket cannot be used by another AWS account in any AWS Region unless you delete the bucket.
Thus, for this lab, you will use a bucket name that includes a random number, such as: website-123 7. For Bucket name , enter: website-<123> (replace < 123 > with a random number) Public access to buckets is blocked by default. Because the files in your static website will need to be accessible through the internet, you must permit public access. o Verify the AWS Region is set to us-east-1 (if it is not, choose the us-east-1 Region) 8. In the Object Ownership section, select ACLs enabled , then verify Bucket owner preferred is selected. 9. Clear Block all public access , then select the box that states I acknowledge that the current settings may result in this bucket and the objects within becoming public . 10.Choose Create bucket . You can use tags to add additional information to a bucket, such as a project code, cost center, or owner. 11.Choose the name of your new bucket. 12.Choose the Properties tab. 13.Scroll to the Tags panel. 14.Choose Edit then Add tag and enter: Key: Department Value: Marketing 14.Choose Save changes to save the tag. Next, you will configure the bucket for static website hosting. 15.Stay in the Properties console. 16.Scroll to the Static website hosting panel. 17.Choose Edit 18.Configure the following settings: o Static web hosting: Enable o Hosting type: Host a static website o Index document: index.html Note : You must enter this value, even though it is already displayed. o Error document: error.html 19.Choose Save changes 20.In the Static website hosting panel, choose the link under Bucket website endpoint . You will receive a 403 Forbidden message because the bucket permissions have not been configured yet. Keep this tab open in your web browser so that you can return to it later.
Your bucket has now been configured to host a static website. Task 2: Uploading content to your bucket In this task, you will upload the files that will serve as your static website to the bucket. 21.Right-click each of these links and download the files to your computer: Ensure that each file keeps the same file name, including the extension. o index.html o script.js o style.css 22.Return to the Amazon S3 console and in the website-<123> bucket you created earlier, choose the Objects tab. 23.Choose Upload 24.Choose Add files 25.Locate and select the three files that you downloaded. 26.If prompted, choose I acknowledge that existing objects with the same name will be overwritten. 27.Choose Upload Your files are uploaded to the bucket. o Choose Close Task 3: Enabling access to the objects Objects that are stored in Amazon S3 are private by default. This ensures that your organization's data remains secure. In this task, you will make the uploaded objects publicly accessible. First, confirm that the objects are currently private. 28.Return to the browser tab that showed the 403 Forbidden message. 29.Refresh the webpage. If you accidentally closed this tab, go to the Properties tab, and in the Static website hosting panel choose the Endpoint link again.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help