codebuilds | Community builds of Visual Studio Code
kandi X-RAY | codebuilds Summary
kandi X-RAY | codebuilds Summary
Unfortunately due to a few reasons (some good! Official support! :-)), I am no longer able to actively maintain this repository. 1). Life events have left me with very little time to maintain these builds. 2). As Microsoft now produces native ARM builds of Visual Studio Code, they should be a much better idea for most users for an installation that is fully vendor supported. A popular Libre option is VSCodium, which has support for many more configurations than this repository supports. 3). The support window has also now closed for the series of 32-bit ARM Chromebooks that were supported by these builds and fell through the cracks of native Linux App support on Chrome OS. While these are still feasible devices, they should likely not be used with Chrome OS as their operating system due to the end of vendor support updates. If installing Linux on these devices, the official Microsoft builds would still be a better option than the builds here, for the reasons mentioned above. As a result please DO NOT create new installations based on these scripts, and consider switching to one of the above (better) options for a better supported upgrade path.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Package task .
- Install the yarn dependencies
- Get build number
- Install the given yarn dependencies
- Compute Checksum for a file .
- Compute checksums for a file
- Check settings if needed
codebuilds Key Features
codebuilds Examples and Code Snippets
Community Discussions
Trending Discussions on codebuilds
QUESTION
I have a project in CDKv1 which i am upgrading to CDKv2. I have a Gitleaks stage in my AWS CodePipeline using CDKv1. Now i want to move this functionality to CDKv2 but the ShellScriptAction
is deprecated. I tried out with ShellStep
but ShellStep does not have the project property - LINK.
ANSWER
Answered 2022-Mar-29 at 12:04I'm assuming you're switching to the new API for CDK pipelines, which requires more than just using different classes for the steps.
If that's true, the equivalent in the new API is to use CodeBuildStep
:
QUESTION
ANSWER
Answered 2022-Mar-02 at 10:04Could you let me know the correct format of batchGetBuilds parameters in CallAwsService?
Use the States.Array
intrinsic function. These CDK syntaxes are equivalent:
QUESTION
I recently set up an application on AWS via CDK. The application consists of a Dockerized nodejs application, which connects to an RDS instance, and has a Redis caching layer as well. After having the application deployed for a few days, the costs are much higher than I had anticipated, even with minimal traffic. After looking through the cost explorer, it looks like half of the cost is coming from the NAT gateways.
In my current setup, I have created two VPCs. One is used for the application stack, and the other is for the CodePipeline. I needed to add one for the pipeline because without it I was hitting rate limits when trying to pull Docker images during the CodeBuildAction steps.
I'm not very comfortable with the networking bits, but I feel like there are extra resources involved. The pipeline VPC has three NAT gateways and three EIPs. These end up just sitting there waiting for the next deployment, which seems like a huge waste. It seems like a new gateway + EIP is allocated for each construct the VPC is attached to in CDK. Can I just make it reuse the same one? Is there an alternative to adding a VPC at all and not getting rate limited by Docker?
I also find it very surprising (I might just be naive) that the NAT gateway is so far equally as expensive as my current Fargate task costs. Is there an alternative that would serve my purposes, but come at a little lower cost?
Anyways, here are my two stacks:
...ANSWER
Answered 2022-Feb-11 at 11:08I would strongly advise moving from the Docker directory to ECR public gallery to avoid ratelimit issues: https://gallery.ecr.aws/
That said, to answer the question about the number of NATs created. As you can see in the CDK docs, what you're seeing reflects the default behavior (emphasis mine):
A VPC consists of one or more subnets that instances can be placed into. CDK distinguishes three different subnet types:
Public (SubnetType.PUBLIC) - public subnets connect directly to the Internet using an Internet Gateway. If you want your instances to have a public IP address and be directly reachable from the Internet, you must place them in a public subnet.
Private with Internet Access (SubnetType.PRIVATE_WITH_NAT) - instances in private subnets are not directly routable from the Internet, and connect out to the Internet via a NAT gateway. By default, a NAT gateway is created in every public subnet for maximum availability. Be aware that you will be charged for NAT gateways.
Isolated (SubnetType.PRIVATE_ISOLATED) - isolated subnets do not route from or to the Internet, and as such do not require NAT gateways. They can only connect to or be connected to from other instances in the same VPC. A default VPC configuration will not include isolated subnets,
A default VPC configuration will create public and private subnets. However, if natGateways:0 and subnetConfiguration is undefined, default VPC configuration will create public and isolated subnets.
So a separate NAT is created for every Public subnet.
Also, the docs for the natGateways
parameter mentioned above also describe the default behavior:
(default: One NAT gateway/instance per Availability Zone)
To limit the number of AZs used by the VPC, specify the maxAzs
parameter. Set it to 1 to only have a single NAT per VPC.
If you're fine with making the resources in the VPC publicly reachable from the internet, you can place them in Public subnets and avoid the creation of NATs altogether.
QUESTION
I have the following AWS CDK pipeline which works. It basically takes source from 2 different GitHub repositories (one for the application code, one for the cdk code) and builds the application code and the cdk code :
...ANSWER
Answered 2022-Feb-04 at 15:36So I found a solution. Maybe not the solution. Indeed, this seems quite convoluted ... and I am sure there is a better way.
So the solution lies in the fact that the ShellStep in the CodePipeline construct attaches the output of additionalInputs
(so the result of the previous CodeBuildStep i.e. lambdaBuildStep
) in a specific directory which is dynamically generated but stored in an environment variable called CODEBUILD_SRC_DIR_BuildLambda_lambda_repo
so you can see it's a combination of the name of the CodeBuildStep and the repo (with the dash changed to underscores).
So my solution was to use this environment variables as my Lambda code asset.
QUESTION
How would I pass a Stack down to a pipeline stage when using AWS-CDK?
I'm currently trying to create a pipeline which could take a stack as an input.
I've followed the aws-cdk workshop and have a pipeline which self-updates and can deploy a pre-packaged lambda but I'm trying to create a pipeline construct library so that my team can just create a new instance of a pipeline and pass in a later created stack which has relevant roles and event rules added.
My current code is below:
pipelines-stack.ts
...ANSWER
Answered 2021-Dec-31 at 10:00My understnding of the proposed solution: implementers should pass a LambdaStack
to a shared PipelineStack
. PipelineStage
is an implementation detail of
the pipeline.
In lambda-deployment-stack.ts
, implementers pass a function with the signature (scope: cdk.Stage) => void
to the common PipelineStack
.
This dependency injection pattern has two purposes: (1) it defers stack construction until the stage scope is available and (2) it encapsulates the policy and other details of no concern to the pipeline.
QUESTION
I am trying to setup a brand new pipeline with the last version of AWS CDK for typescript (1.128).
The creation of the pipeline is pretty straight forward. I have added sources and build stages with no issues. The objective here is to have an automatic deployment of a static landing page.
So far I have this piece of code:
...ANSWER
Answered 2021-Oct-26 at 03:05You can extend Step
and implement ICodePipelineActionFactory
. It's an interface that gets codepipeline.IStage
and adds whatever actions you need to add.
Once you have the factory step, you pass it as either pre
or post
options of the addStage()
method option.
Something close to the following should work:
QUESTION
I'm try to create a service role for AWS CodeBuild.
I can create a role like this:
...ANSWER
Answered 2021-Jul-26 at 16:09You can get access to the policy like this:
QUESTION
I have created the following cloudformation template to create SNS Topic, Subscription and Cloudwatch rule to send notification if a codebuild is failed. And When i tried creating, it was failing during creation of Cloudwatch rule with the below issue:
...ANSWER
Answered 2021-Jun-10 at 08:01For the sns target, you should use Arn: !Ref SNSTopic
. Also you forgot about |
in your InputTemplate
:
QUESTION
I have a lot of codebuild projects that are in use and they rely on aws_codebuild_source_credential
to be created.
The problem for me is that some of the projects are specified in different folders and there is only one source credential for codebuild for an account.
This means that if I then delete a 'stack' which has created a aws_codebuild_source_credential
in order to be able to create codebuild projects then the auth token is deleted for all codebuilds from that point on.
I cannot seem to find a data provider for the aws_codebuild_source_credential
so I am looking for a way to reference one that is already created elsewhere.
When creating a codebuild project the oAuth token needs to be provided:
...ANSWER
Answered 2021-May-04 at 00:25Comes down how you want to organise your terraform code, what I would do is
move
aws_codebuild_source_credential
resource in a separate repository together with aaws_ssm_parameter
resource (potentially even create is as a module).Provision those resources first (pre seeding), when you provision the
aws_codebuild_source_credential
store it'sarn
inaws_ssm_parameter
under a known name.Next time you provision a new codebuild project, retrieve the source credential arn from the SSM via the corresponding data resource ssm_parameter
QUESTION
Currently we have set up AWS Chatbot integration for Slack to receive notifications about CodePipeline - results of CodeBuilds and status of all stages of CodePipeline. I have noticed that the out of the box integration's messages aren't as descriptive as I would like.
For example: if a build fails due to a failed unit test the Chatbot will output POST_BUILD: COMMAND_EXECUTION_ERROR: Error while executing command: . Reason: exit status 1
which is fine but I would much rather change that message to be something more descriptive - to tell me that a test has failed.
I figured that Chatbot is subscribed to SNS topics and once those are sent out it will post a message on Slack. Is there a way to customize the contents of the messages it sends?
...ANSWER
Answered 2021-Mar-27 at 08:52UPDATE: After reading the docs further, I found out we can not modify event messages in aws chatbot.
I get an "Event received is not supported" error
Even though below approach is correct, but notification's originating service is not supported by AWS Chatbot.
Using AWS Chatbot with other AWS services
You can have a custom Event Rule
like below, I choose for FAILED
state you can customize whichever event you want and then subscribe a lambda to it where you can build a meaninful message and then send it to the SNS topic which has AWS Chatbot
subscribed :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install codebuilds
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page