This is a tutorial that uses a toy infrastructure project to highlight some of CUE's features and show how it can be used to simplify and manage infrastructure. Go to Tutorial if you want to skip the introductory stuff.
From cuelang.org:
# This file is: ~/.ssh/config | |
# You may have other (non-CodeCommit) SSH credentials stored in this | |
# config file – in addition to the CodeCommit settings shown below. | |
# NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file! | |
# Credentials for Account1 | |
Host awscc-account1 # 'awscc-account1' is a name you pick | |
Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region |
This is a tutorial that uses a toy infrastructure project to highlight some of CUE's features and show how it can be used to simplify and manage infrastructure. Go to Tutorial if you want to skip the introductory stuff.
From cuelang.org:
Based on https://www.gnu.org/software/make/manual/html_node/Quick-Reference.html
Directive | Description |
---|---|
define variable define variable = define variable := define variable ::= define variable += define variable ?= endef |
Define multi-line variables. |
undefine variable |
Undefining variables. |
FROM debian:latest | |
# Install basic dev packages | |
RUN apt-get clean && apt-get update && apt-get -y install --no-install-recommends \ | |
apt-utils \ | |
openssh-client \ | |
git \ | |
gnupg2 \ | |
dirmngr \ | |
iproute2 \ |
import boto3 | |
def hook(config_file, **kwargs): | |
events = boto3.client('events') | |
delete_endpoint(events, config_file, kwargs) | |
def delete_endpoint(, config_file, **kwargs): | |
# move work here | |
... |
const query: Query = { | |
select: properties, | |
where: { | |
match: { and: { type: createIriValue('abound', 'Customer'), name: 'Abound Dev Customer' } }, | |
}, | |
relation: 'owns', | |
sites: { | |
select: spaceProps, | |
where: { match: { and: { type: createIriValue('brick', 'Site') } } }, | |
relation: 'hasPart', |
it('should build relationship query with node traversals', () => { | |
const query: Query = { | |
select: ['id', 'name'], | |
where: { | |
match: { | |
and: { | |
id: ['45a4d510-adb8-41d1-a34e-557ed6b88309', 'ed79b15e-f60b-4cc6-877b-c653606e68a3'], | |
}, | |
}, | |
}, |
it('should perform multi-path traversal query with criteria at multiple levels', async () => { | |
const actual = await query.executeQuery({ | |
select: ['id', 'name'], | |
where: { | |
match: { and: { type: createIriValue('abound', 'Customer'), id: 'bb27d6a5-091b-4763-9246-0d9e963fd7f8' } }, | |
}, | |
relation: 'owns', | |
buildings: { | |
select: ['id', 'name'], | |
floors: [ |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Neptune Bastion Host for Developers | |
Parameters: | |
pEnvironment: | |
Type: String | |
pPrefix: | |
Type: String | |
pVpc: | |
Type: String | |
pServiceName: |
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo