Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ec2): add dual stack vpc support #28480

Merged
merged 93 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from 55 commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ae65409
Merge pull request #2 from aws/main
scanlonp Sep 21, 2022
2ebdad8
Merge branch 'aws:main' into main
scanlonp Jul 18, 2023
0875c95
Merge branch 'aws:main' into main
scanlonp Aug 22, 2023
fa997db
Merge branch 'aws:main' into main
scanlonp Aug 25, 2023
01a589c
Merge branch 'aws:main' into main
scanlonp Aug 28, 2023
e307864
Merge branch 'aws:main' into main
scanlonp Sep 1, 2023
df490ed
Merge branch 'aws:main' into main
scanlonp Sep 5, 2023
4e6fece
Merge branch 'aws:main' into main
scanlonp Sep 18, 2023
0f0b0aa
Merge branch 'aws:main' into main
scanlonp Sep 20, 2023
e425fe7
Merge branch 'aws:main' into main
scanlonp Sep 21, 2023
b657bea
Merge branch 'aws:main' into main
scanlonp Oct 2, 2023
3e0f62c
Merge branch 'aws:main' into main
scanlonp Oct 2, 2023
a913d65
Merge branch 'aws:main' into main
scanlonp Oct 19, 2023
61c5bb5
Merge branch 'aws:main' into main
scanlonp Oct 20, 2023
775a278
Merge branch 'aws:main' into main
scanlonp Oct 24, 2023
26ac4b8
Merge branch 'aws:main' into main
scanlonp Oct 25, 2023
bffc02b
Merge branch 'aws:main' into main
scanlonp Oct 26, 2023
05e6728
Merge branch 'aws:main' into main
scanlonp Oct 27, 2023
1dc9ef8
Merge branch 'aws:main' into main
scanlonp Nov 18, 2023
bf39cbc
Merge branch 'aws:main' into main
scanlonp Nov 27, 2023
a638a71
Merge branch 'aws:main' into main
scanlonp Nov 30, 2023
88ba4bb
Merge branch 'aws:main' into main
scanlonp Nov 30, 2023
38ed39e
Merge branch 'aws:main' into main
scanlonp Dec 13, 2023
d9ce236
add temp dual-stack file
scanlonp Dec 13, 2023
067cf7c
dual stack vpc protocol
scanlonp Dec 14, 2023
8ae575f
clean up comments
scanlonp Dec 14, 2023
4d8d82a
temp fixes, refactor in the works
scanlonp Dec 18, 2023
9078ffe
integ snapshot
scanlonp Dec 18, 2023
5b06024
remove unnecessary file
scanlonp Dec 18, 2023
f6e2155
remove eigw prop and refine ipv6 property errors
scanlonp Dec 19, 2023
df27531
useIpv6 and useIpv6 booleans
scanlonp Dec 19, 2023
c75ee8d
move default IPv6 IGW route into Subnet method
scanlonp Dec 19, 2023
c09559c
update docstrings
scanlonp Dec 19, 2023
70adf54
clean up subnetProps definition
scanlonp Dec 19, 2023
36b7706
fix automatic IPv6 assignment logic
scanlonp Dec 20, 2023
37ad274
update snapshot
scanlonp Dec 20, 2023
3de7cca
ipv6 cidr options ip-addresses class and interface
scanlonp Dec 21, 2023
02733da
eigw default route function
scanlonp Dec 23, 2023
0274c9b
fix class name typo
scanlonp Dec 23, 2023
7ab23ce
clean integ test
scanlonp Dec 23, 2023
10121c3
clean up subnet cidr allocation
scanlonp Dec 23, 2023
f5951ce
clean up commented code
scanlonp Dec 23, 2023
07c1439
change stack name in integ test
scanlonp Dec 23, 2023
d83d47e
update basic unit test
scanlonp Dec 23, 2023
c7638a0
Add documentation to distinguish IPv4 and v6 props
scanlonp Dec 23, 2023
1efc632
Edit doc string
scanlonp Dec 23, 2023
4780b0d
Merge branch 'main' into designIpv6Vpc
scanlonp Dec 23, 2023
cea83d3
Merge branch 'main' into designIpv6Vpc
scanlonp Jan 4, 2024
2d255a7
add Ipv6Outbound property to instance
scanlonp Jan 4, 2024
5308b87
add ec2 integ test
scanlonp Jan 5, 2024
1f852fb
fix linting errors
scanlonp Jan 5, 2024
f5d11e2
update integ test to set public IPv4 address
scanlonp Jan 5, 2024
c38f844
ec2 integ snapshot
scanlonp Jan 5, 2024
8d9b4b1
fix typo in error message
scanlonp Jan 5, 2024
86c6f57
add IPv6 info to readme
scanlonp Jan 5, 2024
8824b7f
use ipv4.google.com in web-server
scanlonp Jan 8, 2024
5e98f6c
standardize CIDR capitalization in ip-addresses
scanlonp Jan 8, 2024
ea18b77
clean up readme and add dual stack configurations
scanlonp Jan 8, 2024
0fbaaee
Update packages/aws-cdk-lib/aws-ec2/lib/vpc.ts
scanlonp Jan 8, 2024
929c4b9
update readme vpcProtocol to ipProtocol
scanlonp Jan 9, 2024
d28654e
Merge remote-tracking branch 'refs/remotes/origin/designIpv6Vpc' into…
scanlonp Jan 9, 2024
336c056
ipv6IpAddresses to ipv6Addresses
scanlonp Jan 10, 2024
b71df98
change vpcProtocol to ipProtocol
scanlonp Jan 10, 2024
d9c5de7
docs nit
scanlonp Jan 10, 2024
dee22b1
Remove admin permissions from EC2DualStack test.
Jan 10, 2024
0fc8846
Add snapshot dir
Jan 10, 2024
665943e
Merge pull request #7 from scanlonp/mikewrighton-fix-admin-role
scanlonp Jan 11, 2024
a5462a2
tag vpc and subnets with protocol
scanlonp Jan 11, 2024
2d9175e
use IDependable
scanlonp Jan 11, 2024
253c321
fix dependable
scanlonp Jan 11, 2024
c395e38
update integ test
scanlonp Jan 11, 2024
b0102c6
ec2 integ snapshot update with tags
scanlonp Jan 11, 2024
402f236
add note on length of integ test
scanlonp Jan 11, 2024
7201291
move dependencies to caller, remove prop
scanlonp Jan 11, 2024
c4e021a
update base integ test and snapshot
scanlonp Jan 11, 2024
cde7b40
addIpv6Nat64route function
scanlonp Jan 11, 2024
636c635
fix default protocol logic
scanlonp Jan 11, 2024
a5a9fb0
update base integ test and snapshot
scanlonp Jan 11, 2024
2e41fdb
clean up useIpv4 usage + add docstring
scanlonp Jan 11, 2024
3d13d2e
move splitting of IPv6 CIDRs to ip-addresses
scanlonp Jan 11, 2024
f16843c
update ec2 snapshot
scanlonp Jan 11, 2024
795fbc2
re-arrange ip-addresses functions
scanlonp Jan 11, 2024
48533f6
collapse allocateSubnetResources calls
scanlonp Jan 11, 2024
1def36c
allocate vpc ipv6 cidr in ipAddresses
scanlonp Jan 11, 2024
e6d2620
remove tags, allocate ipv cidr in ipAddresses
scanlonp Jan 11, 2024
b0e1815
update integ test name and snapshots
scanlonp Jan 11, 2024
38a9e36
change import order
scanlonp Jan 11, 2024
5fdfa97
add error case test
scanlonp Jan 11, 2024
d55ca88
update contruct name in ec2 integ & snapshot
scanlonp Jan 11, 2024
50c03ba
Merge branch 'main' into designIpv6Vpc
scanlonp Jan 11, 2024
4738ed7
Empty commit test
Jan 11, 2024
8d19bf5
Merge branch 'main' into designIpv6Vpc
mikewrighton Jan 12, 2024
911a995
Merge branch 'main' into designIpv6Vpc
mergify[bot] Jan 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
from http.server import SimpleHTTPRequestHandler
import urllib.request
import json

class MyRequestHandler(SimpleHTTPRequestHandler):
def do_GET(self):
if self.path == '/':
self.send_response(200)
self.send_header('Content-type', 'application/json')
self.end_headers()

try:
# IPv4 request
response = urllib.request.urlopen('http://www.google.com')
scanlonp marked this conversation as resolved.
Show resolved Hide resolved
scanlonp marked this conversation as resolved.
Show resolved Hide resolved
status_code = response.getcode()
if (status_code != 200):
raise Exception(f"Received a non-successful status code: {status_code}")
# self.wfile.write(bytes(f"Status code from www.google.com: {status_code}\n\n", 'utf-8'))
scanlonp marked this conversation as resolved.
Show resolved Hide resolved

# IPv6 request
response = urllib.request.urlopen('http://ipv6.google.com')
status_code = response.getcode()
if (status_code != 200):
raise Exception(f"Received a non-successful status code: {status_code}")
# self.wfile.write(bytes(f"Status code from ipv6.google.com: {status_code}\n\n", 'utf-8'))

json_response = {
"status": status_code
}

self.wfile.write(json.dumps(json_response).encode('utf-8'))
except Exception as e:
self.wfile.write(bytes(f"Error: {str(e)}", 'utf-8'))
return
else:
super().do_GET()

if __name__ == '__main__':
from http.server import HTTPServer
server = HTTPServer(('0.0.0.0', 8000), MyRequestHandler)
print('Server started on http://0.0.0.0:8000')
server.serve_forever()

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading